# HG changeset patch # User Maxim Dounin # Date 1360586149 0 # Node ID c43fa53c1d8fa34fa3790641e95cfd5fbb1cef8b # Parent 2f0862333985068745ccf4c0652643f9cc2dc80c Merge of r4974: avoid sending "100 Continue" on 413. Avoid sending "100 Continue" on 413 Request Entity Too Large. Patch by Igor Sysoev. diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c --- 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 "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;