Mercurial > hg > nginx
diff src/http/ngx_http_copy_filter_module.c @ 1259:05b5236c2ff5
if subrequest response was buffered in file, then subrequest was finalized
with 0 code, ngx_http_writer() was not set, and response part in file was lost
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Sun, 17 Jun 2007 09:29:15 +0000 |
parents | 362d156f0278 |
children | 68d21fd1dc64 |
line wrap: on
line diff
--- a/src/http/ngx_http_copy_filter_module.c +++ b/src/http/ngx_http_copy_filter_module.c @@ -117,6 +117,10 @@ ngx_http_copy_filter(ngx_http_request_t r->buffered |= NGX_HTTP_COPY_BUFFERED; } + if (r != r->main) { + r->out = ctx->in; + } + #if (NGX_DEBUG) ngx_log_debug3(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, "copy filter: %i \"%V?%V\"", rc, &r->uri, &r->args);