From 6814f42473889571a5c61873820d6710bd7ffdb6 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Fri, 14 May 2010 12:18:44 +0000 Subject: fix SSI include stub for valid empty responses --- src/http/ngx_http_copy_filter_module.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') 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) -- cgit