diff options
author | Maxim Dounin <mdounin@mdounin.ru> | 2012-12-18 18:39:39 +0000 |
---|---|---|
committer | Maxim Dounin <mdounin@mdounin.ru> | 2012-12-18 18:39:39 +0000 |
commit | 4bad9d0505bb14d0ec78333ad0c257a21bee1cfa (patch) | |
tree | 6d44258be4b4f6b3d5cac7bee9c3cd19800dad75 /src | |
parent | c865f8dfa2826592b41b86e0048dd418c9eb86b8 (diff) | |
download | nginx-4bad9d0505bb14d0ec78333ad0c257a21bee1cfa.tar.gz nginx-4bad9d0505bb14d0ec78333ad0c257a21bee1cfa.zip |
Avoid sending "100 Continue" on 413 Request Entity Too Large.
Patch by Igor Sysoev.
Diffstat (limited to 'src')
-rw-r--r-- | src/http/ngx_http_core_module.c | 1 |
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 a7db74b98..27f082ee7 100644 --- 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_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; |