]> git.kaiwu.me - nginx.git/commitdiff
do not send "100 Continue" for subrequests
authorIgor Sysoev <igor@sysoev.ru>
Fri, 26 Dec 2008 06:21:23 +0000 (06:21 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Fri, 26 Dec 2008 06:21:23 +0000 (06:21 +0000)
src/http/ngx_http_core_module.c

index a7a5cdb4c099ee52567b5ec809e3a8f69cc2fab8..c949d49e8b39f81311aa8c083947f31254c4747e 100644 (file)
@@ -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) {