]> git.kaiwu.me - nginx.git/commit
Request body: improved handling of incorrect chunked request body.
authorMaxim Dounin <mdounin@mdounin.ru>
Mon, 26 Nov 2012 18:00:14 +0000 (18:00 +0000)
committerMaxim Dounin <mdounin@mdounin.ru>
Mon, 26 Nov 2012 18:00:14 +0000 (18:00 +0000)
commitc4a4a6a5d8f5f110d2f8203052dc1861aedb061f
tree26014d77994da5852ad0aef751ee492fdd08e327
parent61feb90d74b9373a9089a09bbbb8c04629672d4f
Request body: improved handling of incorrect chunked request body.

While discarding chunked request body in some cases after detecting
request body corruption no error was returned, while it was possible
to correctly return 400 Bad Request.  If error is detected too late,
make sure to properly close connection.

Additionally, in ngx_http_special_response_handler() don't return body
of 500 Internal Server Error to a client if ngx_http_discard_request_body()
fails, but disable keepalive and continue.
src/http/ngx_http_request_body.c
src/http/ngx_http_special_response.c