You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Suggestion: http doc should mention special handling for HEAD and 304 #8057
I think it would be a good idea to mention in the official docs that the http module will ignore any response body if the incoming request is a HEAD request, and the same behavior for 304 responses.
And any other special handling the http module does.
Reasoning is, I had no way of knowing if this was official behavior since it was undocumented, and when it first existed / introduced so I had to test it myself to see across a few node versions. So it would've saved me some time and others time in the future.
If it exists already, my apologies, I tried looking through the http doc but could not find a mention.
Activity
tanujasawant commentedon Oct 7, 2016
I can take this up if someone can help me get started. Would you kindly?
doc: response.write ignores body in some cases
doc: response.write ignores body in some cases
doc: response.write ignores body in some cases
doc: response.write ignores body in some cases
doc: response.write ignores body in some cases
doc: response.write ignores body in some cases
doc: response.write ignores body in some cases