Search code examples
proxycompressiongzipnode.jscontent-encoding

Node.js proxy, dealing with gzip compression


I'm currently working on a proxy server where we in this case have to modify the data (by using regexp) that we push through it.

In most cases it works fine except for websites that use gzip as content-encoding (I think), I've come across a module called compress and tried to push the chunks that I receive through a decompress / gunzip stream but it isn't really turning out as I expected.

I was wondering if I am at all heading in the right direction, and if there are more modules out there to make my life easier (regarding gzip compression).

Greetz,

Benjamin


Solution

  • See here: Node.js proxy, dealing with gzip DEcompression

    For an answer that covered most of my problems.