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

HEAD requests should DWIM #286

Closed
dagolden opened this issue Jun 25, 2013 · 0 comments
Closed

HEAD requests should DWIM #286

dagolden opened this issue Jun 25, 2013 · 0 comments

Comments

@dagolden
Copy link

I noticed that send_error sends content, even if the request was a HEAD request. It should send the content-length that would be sent but not the content.

I think a more general fix should be put in place. When the final response to any request is being returned, the message body should always be truncated if the request method was HEAD.

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

No branches or pull requests

0 participants