node/test
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
..
addons test: modify async native test.js to test for #4820 2013-02-21 13:14:07 -08:00
disabled Merge remote-tracking branch 'ry/v0.8' into master 2013-02-18 10:21:08 -08:00
fixtures test: fix test-tls-server-verify 2014-07-23 23:51:14 +04:00
gc test: use the debug build of node-weak when necessary 2012-06-13 17:58:28 -07:00
internet test: move two tests from simple/ to internet/ 2013-07-20 12:36:33 +02:00
message lib: name EventEmitter prototype methods 2014-05-07 12:11:57 -07:00
pummel fs: make unwatchFile() insensitive to path 2014-02-06 13:04:35 +04:00
simple http: do not send `0\r\n\r\n` in TE HEAD responses 2014-09-16 15:24:19 -07:00
timers timers: backport f8193ab 2014-07-31 08:53:24 -07:00
common.js timers: backport f8193ab 2014-07-31 08:53:24 -07:00