[nginx] svn commit: r4974 - trunk/src/http
mdounin at mdounin.ru
mdounin at mdounin.ru
Tue Dec 18 18:39:39 UTC 2012
Author: mdounin
Date: 2012-12-18 18:39:39 +0000 (Tue, 18 Dec 2012)
New Revision: 4974
URL: http://trac.nginx.org/nginx/changeset/4974/nginx
Log:
Avoid sending "100 Continue" on 413 Request Entity Too Large.
Patch by Igor Sysoev.
Modified:
trunk/src/http/ngx_http_core_module.c
Modified: trunk/src/http/ngx_http_core_module.c
===================================================================
--- trunk/src/http/ngx_http_core_module.c 2012-12-17 19:03:33 UTC (rev 4973)
+++ trunk/src/http/ngx_http_core_module.c 2012-12-18 18:39:39 UTC (rev 4974)
@@ -1001,6 +1001,7 @@
"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;
More information about the nginx-devel
mailing list