]> git.kaiwu.me - nginx.git/commit
Disabled requests with both Content-Length and Transfer-Encoding.
authorMaxim Dounin <mdounin@mdounin.ru>
Mon, 28 Jun 2021 15:01:06 +0000 (18:01 +0300)
committerMaxim Dounin <mdounin@mdounin.ru>
Mon, 28 Jun 2021 15:01:06 +0000 (18:01 +0300)
commita6c109fea5c13b8aa13ed95ca00a64d62601042b
treebd21103b535e3375e2e91aa789d1dd8aa0d13f4e
parent5f85bb3714a81d158f4d849ad5c61aec2737a9f0
Disabled requests with both Content-Length and Transfer-Encoding.

HTTP clients are not allowed to generate such requests since Transfer-Encoding
introduction in RFC 2068, and they are not expected to appear in practice
except in attempts to perform a request smuggling attack.  While handling of
such requests is strictly defined, the most secure approach seems to reject
them.
src/http/ngx_http_request.c