mirror of
https://github.com/nginx/nginx.git
synced 2024-12-01 11:19:00 +08:00
inherit flush flag, this fixes https proxying
This commit is contained in:
parent
70c1d0f160
commit
b2c5db58dc
@ -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;
|
dst->in_file = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (src->last_buf && src->pos == src->last) {
|
if (src->pos == src->last) {
|
||||||
dst->last_buf = 1;
|
dst->flush = src->flush;
|
||||||
|
dst->last_buf = src->last_buf;
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} 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;
|
src->file_pos += n;
|
||||||
|
|
||||||
if (src->last_buf && src->file_pos == src->file_last) {
|
if (src->pos == src->last) {
|
||||||
dst->last_buf = 1;
|
dst->flush = src->flush;
|
||||||
|
dst->last_buf = src->last_buf;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user