Re: [fetch] Content-Length on HEAD (#135)

>From 7230:

> 6. If this is a request message and none of the above are true, then the message body length is zero (no message body is present).

This means that C-L is not required on requests.

To be clear - nothing's going to break if you put C-L: 0 on HEAD requests, but there's no good reason to require them.

The justification in the 25684:

> because maybe you're sending a HEAD request to something which normally only deals with POST requests and needs a message body

Is really poor. Parsing HTTP is well-defined and defined in a certain way to be robust. I'm totally behind making decisions based upon data and real interoperability results, but taking a subsample of implementations and deciding to redefine behaviour based upon that ("because maybe"? Really?) is not data-driven, it's cargo cult design.

In the future, maybe ask - even if it's just pinging me or @mcmanus?

---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/issues/135#issuecomment-144570980

Received on Wednesday, 30 September 2015 23:12:27 UTC