Files
node/test/simple
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
..
2012-02-20 13:29:11 +01:00
2010-02-25 11:41:11 -08:00
2012-06-11 15:51:23 -07:00
2012-12-14 10:52:30 -08:00
2012-01-17 19:45:09 +01:00
2011-11-25 01:25:38 +01:00
2012-01-24 00:30:28 +06:00
2012-01-17 19:45:09 +01:00
2012-01-17 19:45:09 +01:00
2011-03-14 17:37:05 -07:00
2011-03-14 17:37:05 -07:00
2012-12-14 17:46:23 -08:00
2011-11-01 22:26:52 +01:00
2011-11-01 22:26:52 +01:00
2012-02-18 15:34:57 -08:00
2011-10-22 14:14:40 +09:00
2011-10-22 14:14:40 +09:00
2011-10-22 14:14:40 +09:00
2012-12-14 17:46:23 -08:00
2012-12-14 17:46:23 -08:00
2012-06-29 17:29:32 +02:00
2012-07-04 13:45:14 +02:00
2012-01-17 19:45:09 +01:00
2011-03-14 17:37:05 -07:00
2012-01-09 11:20:22 -08:00
2013-02-28 23:11:47 +01:00
2012-12-14 10:52:30 -08:00
2011-08-09 13:55:04 -07:00
2014-04-15 15:30:43 -07:00
2011-03-14 17:37:05 -07:00
2012-12-14 10:52:26 -08:00
2011-10-05 18:51:06 -07:00