Re: [XMLHttpRequest-tests] XMLHttpRequest/send-entity-body-get-head* tests should not fail if Content-Length is 0 (#980)

@caitp See http://tools.ietf.org/html/rfc7230#section-3.3.3 and https://tools.ietf.org/html/rfc7231#section-4.3.1
<<
   A payload within a GET request message has no defined semantics;
   sending a payload body on a GET request might cause some existing
   implementations to reject the request.
>>
So there is no vagueness here, rfc2616 never forbid bodies on HEAD/GET, even if nobody ever did this (apart for trying to do things like request smuggling).
So not sending bodies and not sending Content-Length in XHR (or fetch) is the right thing to do.

View on GitHub: https://github.com/w3c/web-platform-tests/issues/980#issuecomment-46988289

Received on Tuesday, 24 June 2014 15:40:47 UTC