commit | 6a2d605bbf2089ad275056ee19ea7e3167429ed9 | [log] [tgz] |
---|---|---|
author | Sergey Kandaurov <pluknet@nginx.com> | Wed Sep 04 13:33:51 2019 +0300 |
committer | Sergey Kandaurov <pluknet@nginx.com> | Wed Sep 04 13:33:51 2019 +0300 |
tree | 1052eb0f4fd8cdd4f95fbe542bd7902f4c893c2e | |
parent | 9701642af39efeb06a119f62bc0255db0a0f0a0f [diff] |
Fixed "return" with discarding invalid chunked body. When ngx_http_discard_request_body() call was added to ngx_http_send_response(), there were no return codes other than NGX_OK and NGX_HTTP_INTERNAL_SERVER_ERROR. Now it can also return NGX_HTTP_BAD_REQUEST, but ngx_http_send_response() still incorrectly transforms it to NGX_HTTP_INTERNAL_SERVER_ERROR. The fix is to propagate ngx_http_discard_request_body() errors.