Mercurial > hg > nginx-quic
diff src/core/ngx_output_chain.c @ 1227:3e40f3e4376c
inherit flush flag, this fixes https proxying
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Sun, 03 Jun 2007 19:58:30 +0000 |
parents | 2b4fdc9640b7 |
children | bb03410441d9 |
line wrap: on
line diff
--- a/src/core/ngx_output_chain.c +++ b/src/core/ngx_output_chain.c @@ -377,8 +377,9 @@ ngx_output_chain_copy_buf(ngx_buf_t *dst dst->in_file = 0; } - if (src->last_buf && src->pos == src->last) { - dst->last_buf = 1; + if (src->pos == src->last) { + dst->flush = src->flush; + dst->last_buf = src->last_buf; } } else { @@ -417,8 +418,9 @@ ngx_output_chain_copy_buf(ngx_buf_t *dst src->file_pos += n; - if (src->last_buf && src->file_pos == src->file_last) { - dst->last_buf = 1; + if (src->pos == src->last) { + dst->flush = src->flush; + dst->last_buf = src->last_buf; } }