Mercurial > hg > nginx-vendor-0-6
diff src/http/ngx_http_copy_filter_module.c @ 254:f3ec44f4a53b NGINX_0_4_12
nginx 0.4.12
*) Feature: the ngx_http_perl_module supports the $r->variable method.
*) Bugfix: if a big static file was included using SSI in a response,
then the response may be transferred incomplete.
*) Bugfix: nginx did not omit the "#fragment" part in URI.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Tue, 31 Oct 2006 00:00:00 +0300 |
parents | 38e7b94d63ac |
children | d5ec0be9c835 |
line wrap: on
line diff
--- a/src/http/ngx_http_copy_filter_module.c +++ b/src/http/ngx_http_copy_filter_module.c @@ -109,12 +109,20 @@ ngx_http_copy_filter(ngx_http_request_t rc = ngx_output_chain(ctx, in); + if (!c->destroyed) { + + if (ctx->in == NULL) { + r->buffered &= ~NGX_HTTP_COPY_BUFFERED; + } else { + r->buffered |= NGX_HTTP_COPY_BUFFERED; + } + #if (NGX_DEBUG) - if (!c->destroyed) { ngx_log_debug3(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, "copy filter: %i \"%V?%V\"", rc, &r->uri, &r->args); +#endif + } -#endif return rc; }