summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2010-05-14 12:18:44 +0000
committerIgor Sysoev <igor@sysoev.ru>2010-05-14 12:18:44 +0000
commit6814f42473889571a5c61873820d6710bd7ffdb6 (patch)
tree5069a6083ac670a4203b134427f5f61ceadc00d7
parent402b2f07c2f2fc74fcafcd0792c4d583e1ad74c4 (diff)
downloadnginx-6814f42473889571a5c61873820d6710bd7ffdb6.tar.gz
nginx-6814f42473889571a5c61873820d6710bd7ffdb6.tar.bz2
fix SSI include stub for valid empty responses
-rw-r--r--src/http/ngx_http_copy_filter_module.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/http/ngx_http_copy_filter_module.c b/src/http/ngx_http_copy_filter_module.c
index a1b616a68..d492f321d 100644
--- 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 *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)