From: Igor Sysoev Date: Fri, 14 May 2010 12:18:44 +0000 (+0000) Subject: fix SSI include stub for valid empty responses X-Git-Tag: release-0.8.37~1 X-Git-Url: http://www.kaiwu.me/postgresql/commit/static/gitweb.js?a=commitdiff_plain;h=6814f42473889571a5c61873820d6710bd7ffdb6;p=nginx.git 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 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)