diff src/http/ngx_http_copy_filter_module.c @ 3518:eb3aaf8bd2a9

fix SSI include stub for valid empty responses
author Igor Sysoev <igor@sysoev.ru>
date Fri, 14 May 2010 12:18:44 +0000
parents 04cfc09b8b8d
children 7450029ff51e
line wrap: on
line diff
--- a/src/http/ngx_http_copy_filter_module.c
+++ b/src/http/ngx_http_copy_filter_module.c
@@ -126,7 +126,9 @@ ngx_http_copy_filter(ngx_http_request_t 
         }
 #endif
 
-        r->request_output = 1;
+        if (in && in->buf && ngx_buf_size(in->buf)) {
+            r->request_output = 1;
+        }
     }
 
 #if (NGX_HAVE_FILE_AIO)