Re: [whatwg/fetch] Request body streams should use chunked encoding (#966)

content-length is optional. In some cases, it's even forbidden.

RFC 2616 Section 4.4: "3. **If** a Content-Length header field (section 14.13) is present, its decimal value in OCTETs represents both the entity-length and the transfer-length. The Content-Length header field MUST NOT be sent ... if a Transfer-Encoding header field is present)."
(emphasis added by me)

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/issues/966#issuecomment-614448750

Received on Thursday, 16 April 2020 06:49:09 UTC