From 52a93439bc737ef6ad7ac99b329ebdbcca6d31c3 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Wed, 6 Jun 2007 05:56:51 +0000 Subject: [PATCH] fix bug introduced in r1228 --- src/core/ngx_output_chain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/ngx_output_chain.c b/src/core/ngx_output_chain.c index 6bb463a83..5e6773e60 100644 --- a/src/core/ngx_output_chain.c +++ b/src/core/ngx_output_chain.c @@ -418,7 +418,7 @@ ngx_output_chain_copy_buf(ngx_buf_t *dst, ngx_buf_t *src, ngx_uint_t sendfile) src->file_pos += n; - if (src->pos == src->last) { + if (src->file_pos == src->file_last) { dst->flush = src->flush; dst->last_buf = src->last_buf; }