# HG changeset patch # User Igor Sysoev # Date 1180350558 0 # Node ID 9177da9e4add2eeb43f86a63c6a5cb50d02fbda1 # Parent e5a3800c35cc857cfeae970337f99c4e557c8a24 fix "proxy_pass https://" diff --git a/src/core/ngx_output_chain.c b/src/core/ngx_output_chain.c --- 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 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 if (ctx->out == NULL) { ctx->last = &ctx->out; + } + + if (!ctx->connection->buffered) { return NGX_OK; }