]> Sergey Matveev's repositories - public-inbox.git/commitdiff
http: fix RFC conformance w.r.t. message length
authorEric Wong <e@yhbt.net>
Tue, 17 Mar 2020 06:52:17 +0000 (06:52 +0000)
committerEric Wong <e@yhbt.net>
Thu, 19 Mar 2020 06:45:32 +0000 (06:45 +0000)
We need to favor "Transfer-Encoding: chunked" over the value of
the Content-Length header.  We should also reject bogus,
duplicate and/or unreasonable values for both these, since they
can trigger unexpected behavior when combined with other HTTP
parsers in proxies such as varnish, nginx, haproxy, etc...

See RFC 7230 (and RFC 2616) for more details:

https://tools.ietf.org/html/rfc7230
https://www.rfc-editor.org/errata_search.php?rfc=7230


No differences found