# HG changeset patch # User Igor Sysoev # Date 1273839524 0 # Node ID eb3aaf8bd2a90126966a7b1e282dc40185f68917 # Parent a4ee4a075ac5e585eff48c0cee4094bdbaa0b579 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 --- 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)