diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2003-10-29 08:30:44 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2003-10-29 08:30:44 +0000 |
| commit | b5faed2dc853ee7e6bda6004b16ceedc6c194641 (patch) | |
| tree | 7812abde1b258c5e751ac6a85072c792549d55f5 /src/core | |
| parent | ab0c4f5038cec58e23a023d8a1e01be038504e3e (diff) | |
| download | nginx-b5faed2dc853ee7e6bda6004b16ceedc6c194641.tar.gz nginx-b5faed2dc853ee7e6bda6004b16ceedc6c194641.tar.bz2 | |
nginx-0.0.1-2003-10-29-11:30:44 import
Diffstat (limited to 'src/core')
| -rw-r--r-- | src/core/ngx_output_chain.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; } |
