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

Unable to download files when Content-Encoding is chunked #85

Closed
eagletmt opened this issue Sep 3, 2018 · 1 comment · Fixed by #86
Closed

Unable to download files when Content-Encoding is chunked #85

eagletmt opened this issue Sep 3, 2018 · 1 comment · Fixed by #86

Comments

@eagletmt
Copy link
Contributor

eagletmt commented Sep 3, 2018

MiniPortile#download_file_http relies on the Content-Length header, but it isn't sent when Content-Encoding is chunked. In this case, content_length_proc is called with nil.
https://github.com/flavorjones/mini_portile/blob/v2.3.0/lib/mini_portile2/mini_portile.rb#L454-L460
Although mini_portile requests with Accept-Encoding: identity, some servers (e.g., GitHub) respond with Content-Encoding: chunked

@flavorjones
Copy link
Owner

Closing the loop: this was addressed via #86 in v2.4.0.

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

Successfully merging a pull request may close this issue.

2 participants