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

[BUG] Missing Content-Length for PDF behind Cloudflare #125

Open
michalkierasinski opened this issue Apr 8, 2024 · 10 comments
Open

[BUG] Missing Content-Length for PDF behind Cloudflare #125

michalkierasinski opened this issue Apr 8, 2024 · 10 comments
Labels
bug Something isn't working

Comments

@michalkierasinski
Copy link

📝 Describe the Bug

PDF behind Cloudflare does not work because Content-Length is not available. Library logs java.io.IOException: Incomplete download.

Cloudflare removes information about Content-Length when Accept-Encoding have gzip value.
Maybe you can remove gzip value from that header?

📖 Library Version

  • Since 2.1.0
@michalkierasinski michalkierasinski added the bug Something isn't working label Apr 8, 2024
Copy link

github-actions bot commented Apr 8, 2024

Thank you for creating your first issue. We appreciate your help in making this project better. We will look into it, and get back to you soon. Need help or want to discuss this issue? Join our Discord community here to ask questions and discuss this issue live!

Copy link

github-actions bot commented May 9, 2024

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

@github-actions github-actions bot added the Stale label May 9, 2024
@michalkierasinski
Copy link
Author

+1

@github-actions github-actions bot removed the Stale label May 11, 2024
Copy link

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

@github-actions github-actions bot added the Stale label Jun 10, 2024
@michalkierasinski
Copy link
Author

+1

@github-actions github-actions bot removed the Stale label Jun 11, 2024
Copy link

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

@github-actions github-actions bot added the Stale label Jul 11, 2024
Copy link

This issue was closed because it has been stalled for 5 days with no activity.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jul 17, 2024
@afreakyelf afreakyelf removed the Stale label Aug 7, 2024
@afreakyelf afreakyelf reopened this Aug 7, 2024
@PElfimov
Copy link

+1

@jimmy-jos
Copy link

Is there a fix for this issue?

@mark-kraemer
Copy link

I'm in a similar situation where the content length is unavailable from my file server. Is there another way to check that the file download is complete apart from the content length here

if (tempFile.length() == totalLength) {
?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants