From b5faed2dc853ee7e6bda6004b16ceedc6c194641 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Wed, 29 Oct 2003 08:30:44 +0000 Subject: nginx-0.0.1-2003-10-29-11:30:44 import --- src/core/ngx_output_chain.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/core') diff --git a/src/core/ngx_output_chain.c b/src/core/ngx_output_chain.c index a2eec1ae1..4ab9b96aa 100644 --- a/src/core/ngx_output_chain.c +++ b/src/core/ngx_output_chain.c @@ -47,6 +47,7 @@ int ngx_output_chain(ngx_output_chain_ctx_t *ctx, ngx_chain_t *in) } last = NGX_NONE; + out = NULL; last_out = &out; for ( ;; ) { @@ -167,7 +168,7 @@ ngx_inline static int ngx_output_chain_need_to_copy(ngx_output_chain_ctx_t *ctx, return 0; } - if (!ctx->sendfile) { + if (!ctx->sendfile && (!(hunk->type & NGX_HUNK_IN_MEMORY))) { return 1; } -- cgit