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

Fix for HEAD requests with Content-Length #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

smira
Copy link
Contributor

@smira smira commented Jul 27, 2015

HTTP response to HEAD request might contain Content-Length header, even though it doesn't have response body. Without this fix deproxy hangs trying to HTTP response body which isn't there.

Don't read response for HEAD requests, even if they contain Content-Length.

@izrik
Copy link
Owner

izrik commented Jul 28, 2015

The code changes look good to me. Are there any tests that you can add?

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

Successfully merging this pull request may close these issues.

2 participants