w3c/web-platform-tests — pull request #981 by caitp (2014-05-10 02:00:29+00:00)
Title: Following RFC2616, assert that there is no message-body, rather than no entity header

From http://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html:

> For response messages, whether or not a message-body is included with a
message is dependent on both
> the request method and the response status code (section 6.1.1). All
responses to the HEAD request
> method MUST NOT include a message-body, even though the presence of entity-
header fields might lead
> one to believe they do.

This means that a server may believe there is a message-body, due to the
presence of Content-Length or Transfer-Encoding, but this does not mean that a
message-body was actually transmitted.

In particular, if Content-Length is 0, then the message-body has both an
entity length and transfer length of 0, which one should take to mean that no
request body was actually included in the request.

Closes #980