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
Request does not support 'deflate' encoding. #2171
Comments
Changing the gzip handling to if (contentEncoding === 'gzip') {
responseContent = zlib.createGunzip()
response.pipe(responseContent)
} else if (contentEncoding === 'deflate') {
responseContent = zlib.createInflate()
response.pipe(responseContent)
} in request.js ensures that deflate responses work. I'm willing to submit a PR for this change, but are there any other considerations here? |
That's weird, I though we support it already. I'm wondering if the |
True, One solution is to use the Another option is to include I'm okay with either of the above options though (or any that I might not have thought of) :) |
Yep let's keep it under Don't forget to add a test in the |
Done! |
This request results in the raw response being dumped to the console:
The expected behavior is that
body
contains the decoded response.The text was updated successfully, but these errors were encountered: