aboutsummaryrefslogtreecommitdiff
path: root/src/core/ngx_output_chain.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/ngx_output_chain.c')
-rw-r--r--src/core/ngx_output_chain.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/ngx_output_chain.c b/src/core/ngx_output_chain.c
index f7845787b..7f5dc787e 100644
--- a/src/core/ngx_output_chain.c
+++ b/src/core/ngx_output_chain.c
@@ -512,7 +512,7 @@ ngx_output_chain_copy_buf(ngx_output_chain_ctx_t *ctx)
size = ngx_buf_size(src);
size = ngx_min(size, dst->end - dst->pos);
- sendfile = ctx->sendfile & !ctx->directio;
+ sendfile = ctx->sendfile && !ctx->directio;
#if (NGX_SENDFILE_LIMIT)