mirror of
https://github.com/nginx/nginx.git
synced 2024-12-01 03:17:17 +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;
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user