We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Julia v1.7.3 HTTP.jl v1.2.0 MbedTLS.jl v1.1.1
When calling HTTP.get() on a resource with Content-Encoding: gzip, the response is automatically decoded for me:
HTTP.get()
Content-Encoding: gzip
julia> using HTTP io = IOBuffer() r = HTTP.get("https://httpbin.org/gzip", response_stream=io); println(String(take!(io))) { "gzipped": true, "headers": { "Accept": "*/*", "Accept-Encoding": "gzip", "Content-Length": "0", "Host": "httpbin.org", "User-Agent": "HTTP.jl/1.7.3", "X-Amzn-Trace-Id": "Root=1-62d6f292-06e09add2b03b541490576d4" }, "method": "GET", "origin": "75.172.111.107" }
Using HTTP.download(), it does not:
HTTP.download()
julia> using HTTP HTTP.download("https://httpbin.org/gzip", "/dev/stdout"; update_period=Inf); ���b�=��j�0�w?��*Œ]�:��B�R\�*[gY���|]���x����ݵ(Kb.vY@���<��͠4�5�k#���3��wd eJ�n��:�tj���;����9�*��_��q�c>���3q5%N}��~~��IV��7��G��F�o�|��=>s� �QZL��u�&C����p$6�g�-��{7������K�8�W����Sj2
The text was updated successfully, but these errors were encountered:
As far as I found, this is a regression introduced since v1.0.0, for files that could be downloaded correctly without compression
the thing is:
HTTP.get
HTTP.download
"Accept-Encoding" => "gzip"
it works for me immediately by either:
pkg> pin HTTP@0
HTTP.download(decompress = false, args...)
Sorry, something went wrong.
download()
Successfully merging a pull request may close this issue.
Verisons
Julia v1.7.3
HTTP.jl v1.2.0
MbedTLS.jl v1.1.1
Issue
When calling
HTTP.get()
on a resource withContent-Encoding: gzip
, the response is automatically decoded for me:Using
HTTP.download()
, it does not:The text was updated successfully, but these errors were encountered: