summaryrefslogtreecommitdiffhomepage
path: root/src/core/ngx_output_chain.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2003-11-02 22:56:18 +0000
committerIgor Sysoev <igor@sysoev.ru>2003-11-02 22:56:18 +0000
commit659774979feb9741a441505e26774b35830fd4ca (patch)
tree596059bbe20959ad54cbfde8bcdf24cd7f9e9f83 /src/core/ngx_output_chain.c
parentfe0f5cc6e1e48412235ae91c2f71ec2ec9110a60 (diff)
downloadnginx-659774979feb9741a441505e26774b35830fd4ca.tar.gz
nginx-659774979feb9741a441505e26774b35830fd4ca.tar.bz2
nginx-0.0.1-2003-11-03-01:56:18 import
Diffstat (limited to 'src/core/ngx_output_chain.c')
-rw-r--r--src/core/ngx_output_chain.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/core/ngx_output_chain.c b/src/core/ngx_output_chain.c
index 69ed5bc55..f196937ef 100644
--- a/src/core/ngx_output_chain.c
+++ b/src/core/ngx_output_chain.c
@@ -169,8 +169,12 @@ ngx_inline static int ngx_output_chain_need_to_copy(ngx_output_chain_ctx_t *ctx,
return 0;
}
- if (!ctx->sendfile && (!(hunk->type & NGX_HUNK_IN_MEMORY))) {
- return 1;
+ if (!ctx->sendfile) {
+ if (!(hunk->type & NGX_HUNK_IN_MEMORY)) {
+ return 1;
+ }
+
+ hunk->type &= ~NGX_HUNK_FILE;
}
if (ctx->need_in_memory && (!(hunk->type & NGX_HUNK_IN_MEMORY))) {