inherit flush flag, this fixes https proxying

This commit is contained in:
Igor Sysoev 2007-06-03 19:58:30 +00:00
parent 70c1d0f160
commit b2c5db58dc

View File

@ -377,8 +377,9 @@ ngx_output_chain_copy_buf(ngx_buf_t *dst, ngx_buf_t *src, ngx_uint_t sendfile)
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, ngx_buf_t *src, ngx_uint_t sendfile)
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;
}
}