-
Notifications
You must be signed in to change notification settings - Fork 968
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
Response with Content-Encoding but empty body breaks #247
Comments
Actually Rack::Deflate is innocent, we have a strangely configured proxy I think. Still, it would be nice if HTTParty could handle it. |
Yeah, does not seem like an httparty bug per say but we can probably handle it more gracefully. What is the actual error? You have the backtrace but not the exception. |
Sorry, it's TypeError with "can't convert nil into String". |
@ghostganz can you provide failing test for this issue ? |
I think #530 closes this. Closing but let me know if I'm wrong. |
I have a service that gives 304 Not Modified responses and has a response header "Content-Encoding: gzip" at the same time. (Arguably a bug in Rack::Deflate, but that's another story).
Since the 304 response has no body, HTTParty chokes when trying to decompress the body:
The failing line in HTTParty:
The text was updated successfully, but these errors were encountered: