Files
node/lib
Fedor Indutny 1fddc1fee8 http: do not send 0\r\n\r\n in TE HEAD responses
When replying to a HEAD request, do not attempt to send the trailers and
EOF sequence (`0\r\n\r\n`). The HEAD request MUST not have body.

Quote from RFC:

The presence of a message body in a response depends on both the
request method to which it is responding and the response status code
(Section 3.1.2).  Responses to the HEAD request method (Section 4.3.2
of [RFC7231]) never include a message body because the associated
response header fields (e.g., Transfer-Encoding, Content-Length,
etc.), if present, indicate only what their values would have been if
the request method had been GET (Section 4.3.1 of [RFC7231]).

fix #8361

Reviewed-By: Timothy J Fontaine <tjfontaine@gmail.com>
2014-09-16 15:24:19 -07:00
..
2011-03-14 17:37:05 -07:00
2011-03-14 17:37:05 -07:00
2011-03-14 17:37:05 -07:00
2014-07-31 08:59:46 -07:00
2013-02-22 16:30:27 -08:00
2013-01-16 16:53:11 +01:00
2012-06-28 10:14:03 -07:00
2014-07-31 08:53:24 -07:00
2014-07-31 08:53:24 -07:00
2013-02-28 23:11:47 +01:00
2012-03-03 23:48:57 -08:00