]> git.kaiwu.me - nginx.git/commitdiff
Avoid sending "100 Continue" on 413 Request Entity Too Large.
authorMaxim Dounin <mdounin@mdounin.ru>
Tue, 18 Dec 2012 18:39:39 +0000 (18:39 +0000)
committerMaxim Dounin <mdounin@mdounin.ru>
Tue, 18 Dec 2012 18:39:39 +0000 (18:39 +0000)
Patch by Igor Sysoev.

src/http/ngx_http_core_module.c

index a7db74b988420e908016dd9eaa58ccb81950b075..27f082ee78dc7786634427eb1a1b7b06e2fd25c5 100644 (file)
@@ -1001,6 +1001,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);
 
+        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;