You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm intermittently seeing Zlib::BufError exceptions being raised when making requests. I'm not setting an Accept-Encoding header allowing compressed content, so presumably this is caused by a server responding with Content-Encoding regardless, and then Net::HTTP trying to decompress the response which is either malformed or not compressed the in the first place.
I'm not quite sure what to do about that? I don't really care about the response, what I'm after is the status code. I could make a HEAD request, but some servers will just a return a 405 because they don't support it.
Is there anything I can do about this other than switching to a different adapter?
The text was updated successfully, but these errors were encountered:
Of course I would finally figure this out minutes after I ask the question. For posterity, setting the Accept-Encoding header to identity will stop Net::HTTP from automatically requesting and/or attempting to inflate a compressed response.
I'm intermittently seeing
Zlib::BufError
exceptions being raised when making requests. I'm not setting anAccept-Encoding
header allowing compressed content, so presumably this is caused by a server responding withContent-Encoding
regardless, and thenNet::HTTP
trying to decompress the response which is either malformed or not compressed the in the first place.I'm not quite sure what to do about that? I don't really care about the response, what I'm after is the status code. I could make a
HEAD
request, but some servers will just a return a 405 because they don't support it.Is there anything I can do about this other than switching to a different adapter?
The text was updated successfully, but these errors were encountered: