changeset 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 a4ee4a075ac5
children 265b7fd2ae21
files src/http/ngx_http_copy_filter_module.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
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)