Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can we un-gzip the response body? #15

Open
pulkitsinghal opened this issue Apr 10, 2014 · 2 comments
Open

How can we un-gzip the response body? #15

pulkitsinghal opened this issue Apr 10, 2014 · 2 comments

Comments

@pulkitsinghal
Copy link

If the response is returned with content-encoding=gzip, where can we hook into requestify to decompress that?

@prasunsultania
Copy link

@pulkitsinghal please see my fork [https://github.com/prasunsultania/requestify], I have pushed code to return buffered response, which can then be unzipped manually in the response handler
eg:var zlib = require('zlib');
zlib.gunzip(res.bufferedResponse, function(err, data){console.log(err); console.log(data.toString());})

@pulkitsinghal
Copy link
Author

@jeff-french - you might find the update from @prasunsultania to be of interest as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants