appcues / mojito

An easy-to-use Elixir HTTP client, built on the low-level Mint library.
https://hexdocs.pm/mojito/Mojito.html
MIT License
349 stars 34 forks source link

adds support for automatically decompressing gzip/deflate data received #52

Closed mogorman closed 4 years ago

mogorman commented 4 years ago

adds support for automatically decompressing gzip/deflate data received unless told not to in the options with raw: true

mogorman commented 4 years ago

I think it works better this way automatically, but could be done in reverse, so you have to manually say you want it uncompressed.

given though you have to add the accept-encoding flag already, I think most people would prefer it this way.

mogorman commented 4 years ago

Also curious what would be the right way to add meaningful unit test for this