From: Igor Sysoev Date: Mon, 28 May 2007 11:09:18 +0000 (+0000) Subject: fix "proxy_pass https://" X-Git-Tag: release-0.5.21~1 X-Git-Url: http://www.kaiwu.me/postgresql/commit/?a=commitdiff_plain;h=b8ddf754f9d4d46524cc05ae7d8884186bce44e4;p=nginx.git fix "proxy_pass https://" --- diff --git a/src/core/ngx_output_chain.c b/src/core/ngx_output_chain.c index 4479edacc..e2dcc4c52 100644 --- a/src/core/ngx_output_chain.c +++ b/src/core/ngx_output_chain.c @@ -473,7 +473,7 @@ ngx_chain_writer(void *data, ngx_chain_t *in) size += ngx_buf_size(cl->buf); } - if (size == 0) { + if (size == 0 && !ctx->connection->buffered) { return NGX_OK; } @@ -489,6 +489,9 @@ ngx_chain_writer(void *data, ngx_chain_t *in) if (ctx->out == NULL) { ctx->last = &ctx->out; + } + + if (!ctx->connection->buffered) { return NGX_OK; }