diff options
author | Igor Sysoev <igor@sysoev.ru> | 2009-10-26 17:40:07 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2009-10-26 17:40:07 +0000 |
commit | 5aa449e8ffae59f0dfdc73485971a51258391eed (patch) | |
tree | 113b216ec86911f597cf15906f9fbbd06723bd3e | |
parent | bc286e0604cf29501a5fa69e51fdaa4ebaa7c9c8 (diff) | |
download | nginx-5aa449e8ffae59f0dfdc73485971a51258391eed.tar.gz nginx-5aa449e8ffae59f0dfdc73485971a51258391eed.zip |
merge r3079:
discard request body before returning 413 error,
this fixes custom 413 page redirection bug introduced in r1456
-rw-r--r-- | src/http/ngx_http_core_module.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c index e79dd1cd2..799dfc856 100644 --- a/src/http/ngx_http_core_module.c +++ b/src/http/ngx_http_core_module.c @@ -885,6 +885,7 @@ ngx_http_core_find_config_phase(ngx_http_request_t *r, "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; } |