-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
content-encoding header should be removed #28
Comments
That's a good find 👍🏻 |
I think this change introduced a different issue. The header "content-encoding" is removed from the original So you end up with a In a context where this |
And correctly remove `content-length` header. Fixes #28 (comment) Fixes #37
Thanks for looking into this @sindresorhus. Is there any chance to release this as a fix for v7.0 ? i.e. 7.0.1 or simply 7.1.0 |
While it is a bug fix, changing this in v7 (or v8) is simply too risky. Some users may depend on the current behavior. |
I understand. Thanks @sindresorhus ! 🙇 |
Return of this function is instance of http.IncomingMessage
The problem is that this function does not delete content-encoding header, so the result is that you have an IncomingMessage object with content-encoding header with original value like 'gzip' but the stream is no longer compressed.
I think the the function should also delete content-encoding header before returning the result stream
The text was updated successfully, but these errors were encountered: