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

Sends a response body when method is HEAD #334

Closed
nick opened this issue Jul 7, 2010 · 1 comment
Closed

Sends a response body when method is HEAD #334

nick opened this issue Jul 7, 2010 · 1 comment

Comments

@nick
Copy link
Contributor

nick commented Jul 7, 2010

When sent HEAD instead of GET the server responds with a body

I'm not 100% sure but I think changing line 196 of request.js to the following fixes it:

if (204 === code || self.method === 'HEAD')

@rmontgomery429
Copy link

This issue was closed.
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

2 participants