diff src/core/ngx_output_chain.c @ 1238:bb03410441d9

fix bug introduced in r1228
author Igor Sysoev <igor@sysoev.ru>
date Wed, 06 Jun 2007 05:56:51 +0000
parents 3e40f3e4376c
children 3091e5d770a6
line wrap: on
line diff
--- 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
 
         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;
         }