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

fix zlib error of 'Error: unexpected end of file'

Open JanzenZhangChen opened this issue 7 years ago • 3 comments

fix zlib error of 'Error: unexpected end of file'.

JanzenZhangChen avatar May 05 '17 15:05 JanzenZhangChen

now I have no idea how to fix this problem, couldnt pass the "on the nose" mocha test.

JanzenZhangChen avatar May 05 '17 16:05 JanzenZhangChen

Hey @JanzenZhangChen, thanks for the patch.

Quick glance at the tests shows:

  1) test userResDecorator on html response from github is able to read and manipulate the response:
     Error: incorrect header check
      at Zlib._handle.onerror (zlib.js:366:17)

Seems likely related to your patch. I'd like that to pass, and to have a test for this change to accept.

Let me know any questions, thanks!

monkpow avatar May 10 '17 12:05 monkpow

Is this trying to fix the issue https://github.com/villadora/express-http-proxy/issues/177 ?

scr4bble avatar Apr 12 '18 19:04 scr4bble