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

Do not pipe stream to gunzip with HEAD request. #1384

Closed
wants to merge 2 commits into from

Conversation

kamikat
Copy link

@kamikat kamikat commented Feb 25, 2018

The PR fixes the problem when the server responds a HEAD request with Content-Encoding: gzip set where there is no content being sent and Zlib will throw an exception complaining unexpected end of file.

@kamikat
Copy link
Author

kamikat commented Feb 25, 2018

Here's a similar issue: request/request#2177

@chinesedfan
Copy link
Collaborator

Closed in favor of #2666. Thanks for your contribution all the same.

@axios axios locked and limited conversation to collaborators May 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants