Open jaypinho opened 1 year ago
I've run into this for a GET request. In my case the response includes a Range
header, which causes Net::HTTP
to not un-gzip the response automatically. Ideally I think HTTParty would automatically handle decompression of gzip data when Net::HTTP
didn't handle it.
Using Ruby 3.0.4 and httparty 0.20.0
Here's an example API call:
My understanding from the docs is that HTTParty automatically uncompresses gzipped responses as long as I don't explicitly specify an
Accept-Encoding
request header.Why is that not happening here?
P.S. FWIW, I just tried a very similar HTTParty
POST
call (rather thanPATCH
) and the response came back uncompressed as expected.