From 2aae701ab7f9c5a95d9fabcfa3e8f6f4e16e7713 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Fri, 26 Dec 2008 06:21:23 +0000 Subject: do not send "100 Continue" for subrequests --- src/http/ngx_http_core_module.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/http/ngx_http_core_module.c') diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c index a7a5cdb4c..c949d49e8 100644 --- a/src/http/ngx_http_core_module.c +++ b/src/http/ngx_http_core_module.c @@ -862,7 +862,10 @@ ngx_http_core_find_config_phase(ngx_http_request_t *r, return NGX_OK; } - if (r->headers_in.expect && r->http_version > NGX_HTTP_VERSION_10) { + if (r->headers_in.expect + && r == r->main + && r->http_version > NGX_HTTP_VERSION_10) + { expect = ngx_http_core_send_continue(r); if (expect != NGX_OK) { -- cgit