restaumatic / vcr-proxy

Proxy for request, response recording and playback
BSD 3-Clause "New" or "Revised" License
4 stars 1 forks source link

Disable gzipped responses by sending "Accept-Encoding: identity" #2

Closed zyla closed 5 years ago

zyla commented 5 years ago

Recent versions of http-proxy don't decompress gzipped responses - see https://github.com/restaumatic/http-proxy/commit/311caeb7e6bbea2b06c9b7a06578079441de5e87. This is for good reasons - one would also have to mess with the headers (Content-Encoding, and also Content-Length) to make everything correct.

An easier solution for dealing with gzipped responses is not to request them.