Mercurial > hg > nginx-quic
changeset 3078:680cab09818d
discard request body before returning 413 error,
this fixes custom 413 page redirection bug introduced in r1456
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 01 Sep 2009 12:47:34 +0000 |
parents | 98f03cd8d6cc |
children | 566eeb81e807 |
files | src/http/ngx_http_core_module.c |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/http/ngx_http_core_module.c +++ b/src/http/ngx_http_core_module.c @@ -917,6 +917,7 @@ ngx_http_core_find_config_phase(ngx_http "client intended to send too large body: %O bytes", r->headers_in.content_length_n); + (void) ngx_http_discard_request_body(r); ngx_http_finalize_request(r, NGX_HTTP_REQUEST_ENTITY_TOO_LARGE); return NGX_OK; }