merge r3079:

discard request body before returning 413 error,
this fixes custom 413 page redirection bug introduced in r1456
This commit is contained in:
Igor Sysoev 2009-10-26 17:40:07 +00:00
parent ddfa019fc2
commit c2c30b26a2
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}