Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accept-Encoding header in PDF printing example #4

Open
andybalholm opened this issue Sep 10, 2024 · 0 comments
Open

Accept-Encoding header in PDF printing example #4

andybalholm opened this issue Sep 10, 2024 · 0 comments

Comments

@andybalholm
Copy link

The example showing how to print a PDF file sets an Accept-Encoding header on the HTTP request, but that doesn't work correctly. If the printer returns a compressed response, decoding the IPP response fails. (IPP decode: Invalid tag 0 at 0x8) If we leave that header off, the Go HTTP package puts in an accept-encoding header transparently, and everything works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant