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

Already on GitHub? Sign in to your account

Don't stream the response body on head requests #15

Merged
merged 1 commit into from Nov 13, 2012

Conversation

Projects
None yet
2 participants
Contributor

josevalim commented Nov 13, 2012

A HEAD request must return the same headers as a GET
request but no body. This means a Content-Length header
is actually set for such requests but no body is sent
back, leading to timeouts before this commit.

Don't stream the response body on head requests
A HEAD request must return the same headers as a GET
request but no body. This means a Content-Length header
is actually set for such requests but no body is sent
back, leading to timeouts before this commit.

benoitc added a commit that referenced this pull request Nov 13, 2012

Merge pull request #15 from josevalim/no-stream-on-head
Don't stream the response body on head requests

@benoitc benoitc merged commit 035d3de into benoitc:master Nov 13, 2012

Owner

benoitc commented Nov 13, 2012

merged thanks!

Contributor

josevalim commented Nov 13, 2012

Awesome, thanks for hackney!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment