Mercurial > hg > nginx
changeset 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 | 863c3490103e |
files | src/core/ngx_output_chain.c |
diffstat | 1 files changed, 6 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/core/ngx_output_chain.c Sun Jun 03 19:56:27 2007 +0000 +++ b/src/core/ngx_output_chain.c Sun Jun 03 19:58:30 2007 +0000 @@ -377,8 +377,9 @@ 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 @@ 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; } }