google / cloudprint_logocert

Google Cloud Print Logo Certification Automation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Local API Creatjob

rskak1 opened this issue · comments

Our printer fails LocalPrinting.
Google Cloud Print Logo Certification Tool version2 does not set 'Content-Type' of request header in CreatJob().
I think 'Content-Type' of request header should be set because there is CJS of request body

commented

The logocert tool does send 'Content-Type' in the request header during SubmitDoc().
CreateJob() does not require any headers except for the X-Privet-Token so your printer should be able to handle the lack of 'Content-Type' header.

image
https://developers.google.com/cloud-print/docs/privet#51-privetprintercreatejob-api

The following cases have occurred due to Google Cloud Print Logo Certification Tool version2 does not set 'Content-Type' of request header in CreatJob().

Case1. There is no setting of 'Content-Type' of request header.
Case2. It is set to 'image/pwg-raster' in 'Content-Type' of request header.
Case3. It is set to 'application/pdf' in 'Content-Type' of request header.

Are Case2 and Case3 intended as well?

commented

Sorry, I'm not very clear on what you are asking.
CreateJob() does not require 'content-type' to be present in the headers as I mentioned above.
Can you please provide some logs for the LocalPrinting cases that you are failing?