summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Dounin <mdounin@mdounin.ru>2013-02-11 12:35:49 +0000
committerMaxim Dounin <mdounin@mdounin.ru>2013-02-11 12:35:49 +0000
commitbbbadc2be234bf93fdf0f8dc3a22438b73ea586b (patch)
treee02416f68f9aa68a2011d5d20d1dfb73208d4f80
parent5667debba4bb1edd33108d13f6463a0659e84e31 (diff)
downloadnginx-bbbadc2be234bf93fdf0f8dc3a22438b73ea586b.tar.gz
Merge of r4974: avoid sending "100 Continue" on 413.
Avoid sending "100 Continue" on 413 Request Entity Too Large. Patch by Igor Sysoev.
-rw-r--r--src/http/ngx_http_core_module.c1
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 bfb685470..61439a104 100644
--- a/src/http/ngx_http_core_module.c
+++ b/src/http/ngx_http_core_module.c
@@ -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;