changeset 4973:44fcb9677c3f

Avoid sending "100 Continue" on 413 Request Entity Too Large. Patch by Igor Sysoev.
author Maxim Dounin <mdounin@mdounin.ru>
date Tue, 18 Dec 2012 18:39:39 +0000
parents 8b635cf36ccc
children 9d9ee85db35d
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
@@ -1001,6 +1001,7 @@ ngx_http_core_find_config_phase(ngx_http
                       "client intended to send too large body: %O bytes",
                       r->headers_in.content_length_n);
 
+        r->expect_tested = 1;
         (void) ngx_http_discard_request_body(r);
         ngx_http_finalize_request(r, NGX_HTTP_REQUEST_ENTITY_TOO_LARGE);
         return NGX_OK;