lostisland / faraday-em_http

Faraday adapter for EventMachine::HttpRequest
MIT License
1 stars 4 forks source link

Stop double-decoding gzip #3

Open singpolyma opened 3 years ago

singpolyma commented 3 years ago

By default em-http decodes gzip content and leaves the Content-Encoding header intact, which is then detected by Faraday middleware and the gzip decoding is attempted again leading to exceptions.

This change requests that em-http not handle the gzip decoding, so that the Faraday middleware can do it.