express-http-proxy
express-http-proxy copied to clipboard
Authors should be able to disable gzip feature [see suggestion]
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.
Maybe I have solved it temporarily by deleting 'Accept-Encoding' header in request, so gzip should not be called when intercepting the response.
@scr4bble Thanks for raising this issue. I will add an option to disable gzip.
@monkpow were you still planning on adding this option? I'm happy to contribute if you don't have the bandwidth.