commit | 6814f42473889571a5c61873820d6710bd7ffdb6 | [log] [tgz] |
---|---|---|
author | Igor Sysoev <igor@sysoev.ru> | Fri May 14 12:18:44 2010 +0000 |
committer | Igor Sysoev <igor@sysoev.ru> | Fri May 14 12:18:44 2010 +0000 |
tree | 5069a6083ac670a4203b134427f5f61ceadc00d7 | |
parent | 402b2f07c2f2fc74fcafcd0792c4d583e1ad74c4 [diff] |
fix SSI include stub for valid empty responses
diff --git a/src/http/ngx_http_copy_filter_module.c b/src/http/ngx_http_copy_filter_module.c index a1b616a..d492f32 100644 --- a/src/http/ngx_http_copy_filter_module.c +++ b/src/http/ngx_http_copy_filter_module.c
@@ -126,7 +126,9 @@ } #endif - r->request_output = 1; + if (in && in->buf && ngx_buf_size(in->buf)) { + r->request_output = 1; + } } #if (NGX_HAVE_FILE_AIO)