]> git.kaiwu.me - nginx.git/commitdiff
Merge of r4974: avoid sending "100 Continue" on 413.
authorMaxim Dounin <mdounin@mdounin.ru>
Mon, 11 Feb 2013 12:35:49 +0000 (12:35 +0000)
committerMaxim Dounin <mdounin@mdounin.ru>
Mon, 11 Feb 2013 12:35:49 +0000 (12:35 +0000)
Avoid sending "100 Continue" on 413 Request Entity Too Large.

Patch by Igor Sysoev.

src/http/ngx_http_core_module.c

index bfb685470f4202a864e907e998b08183a36890d3..61439a104303bf58e74d273cb5a37b28770c2f51 100644 (file)
@@ -993,6 +993,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;