-
Notifications
You must be signed in to change notification settings - Fork 353
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
Handle compressed body in successful response #148
Conversation
The assumption being that in case of errors, the body is actually not compressed even if requested which is usually the default behaviour. |
Where does this happen? Can you add some docs here to this? Also this is now outdated due to the merge of the headers. |
The |
@tlvenn Thank you! Thank you thank you thank you. Totally my fault. Can you rebase against your previous change and then I will merge? |
Done @DavidAntaramian |
decoded_body = | ||
body | ||
|> Poison.decode! | ||
|> decompress_body(headers) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tlvenn Should this be before Poison.decode!/2
? Otherwise won't it try to decode to JSON the compressed body?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oups... good catch
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
🐛 🔨 |
🖐 💛 |
Fix #147