Mercurial > hg > nginx
changeset 3251:ff7e1ec2c9a4 stable-0.7
merge r3079:
discard request body before returning 413 error,
this fixes custom 413 page redirection bug introduced in r1456
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 26 Oct 2009 17:40:07 +0000 |
parents | cfc35172c7fd |
children | ef8cfb09a50b |
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 Mon Oct 26 17:37:18 2009 +0000 +++ b/src/http/ngx_http_core_module.c Mon Oct 26 17:40:07 2009 +0000 @@ -885,6 +885,7 @@ "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; }