express-http-proxy icon indicating copy to clipboard operation
express-http-proxy copied to clipboard

Authors should be able to disable gzip feature [see suggestion]

Open scr4bble opened this issue 6 years ago • 3 comments

gzip responses

If your proxy response is gzipped, this program will automatically unzip it before passing to your function, then zip it back up before piping it to the user response. There is currently no way to short-circuit this behavior.

There is quite ugly issue https://github.com/villadora/express-http-proxy/issues/177 affecting the gzip feature described in readme. Is there any way to disable the feature? It kills whole application.

The steps how to suppress the error is described in zlib's official documentation. Please let me know if I can help you anyhow.

scr4bble avatar Apr 12 '18 19:04 scr4bble

Maybe I have solved it temporarily by deleting 'Accept-Encoding' header in request, so gzip should not be called when intercepting the response.

scr4bble avatar Apr 12 '18 19:04 scr4bble

@scr4bble Thanks for raising this issue. I will add an option to disable gzip.

monkpow avatar Apr 18 '18 13:04 monkpow

@monkpow were you still planning on adding this option? I'm happy to contribute if you don't have the bandwidth.

lewisvail3 avatar Jun 24 '21 19:06 lewisvail3