]> git.kaiwu.me - nginx.git/commit
HTTP/3: fixed handling of malformed request body length.
authorSergey Kandaurov <pluknet@nginx.com>
Fri, 3 May 2024 16:28:32 +0000 (20:28 +0400)
committerSergey Kandaurov <pluknet@nginx.com>
Fri, 3 May 2024 16:28:32 +0000 (20:28 +0400)
commita7e3cd52e0a03286267177aa9b88d64232fbaeaf
tree15d76e17c44acdb16c99c01ee45b13cc42780e1e
parent3f0fe15a98c2f849cf1f3f86a60b547e12273f4c
HTTP/3: fixed handling of malformed request body length.

Previously, a request body larger than declared in Content-Length resulted in
a 413 status code, because Content-Length was mistakenly used as the maximum
allowed request body, similar to client_max_body_size.  Following the HTTP/3
specification, such requests are now rejected with the 400 error as malformed.
src/http/v3/ngx_http_v3_request.c