afreakyelf / Pdf-Viewer

A Lightweight PDF Viewer Android library which only occupies around 80kb while most of the Pdf viewer occupies up to 16MB space.
https://afreakyelf.github.io/Pdf-Viewer/
MIT License
692 stars 150 forks source link

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

Open michalkierasinski opened 2 months ago

michalkierasinski commented 2 months ago

📝 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

github-actions[bot] commented 2 months ago

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!

github-actions[bot] commented 1 month ago

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.

michalkierasinski commented 1 month ago

+1

github-actions[bot] commented 3 weeks ago

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.

michalkierasinski commented 3 weeks ago

+1