]> git.kaiwu.me - nginx.git/commitdiff
fix SSI include stub for valid empty responses
authorIgor Sysoev <igor@sysoev.ru>
Fri, 14 May 2010 12:18:44 +0000 (12:18 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Fri, 14 May 2010 12:18:44 +0000 (12:18 +0000)
src/http/ngx_http_copy_filter_module.c

index a1b616a68a7252f0dd598a87b9acbfbadd5b1917..d492f321dedc0649a2cd69e6e805e59f3370231f 100644 (file)
@@ -126,7 +126,9 @@ ngx_http_copy_filter(ngx_http_request_t *r, ngx_chain_t *in)
         }
 #endif
 
-        r->request_output = 1;
+        if (in && in->buf && ngx_buf_size(in->buf)) {
+            r->request_output = 1;
+        }
     }
 
 #if (NGX_HAVE_FILE_AIO)