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

> 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.

What this is saying is, "sending a payload with a GET or HEAD request doesn't have any defined semantics". It does not say that this is forbidden. We have 3 mainstream web browsers sending Content-Length on HEAD requests, and none of them appear to be missing anything from it.

The point is that it doesn't "matter" whether there's a Content-Length value of 0 or not. But if we want browsers to converge and behave similarly, then that's a bug to file on Gecko, and maybe Servo. It seems like everyone else is already behaving the same way here.

But regardless of this, why are we testing against something which isn't actually specified anywhere?



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

Received on Sunday, 13 July 2014 21:50:01 UTC