commit | b8ddf754f9d4d46524cc05ae7d8884186bce44e4 | [log] [tgz] |
---|---|---|
author | Igor Sysoev <igor@sysoev.ru> | Mon May 28 11:09:18 2007 +0000 |
committer | Igor Sysoev <igor@sysoev.ru> | Mon May 28 11:09:18 2007 +0000 |
tree | da0d4c5cc19513d339fafe8ea425ac23f53184df | |
parent | da8c05a5fd0e85bad4edbe4bf1206a5dd5e11313 [diff] |
fix "proxy_pass https://"
diff --git a/src/core/ngx_output_chain.c b/src/core/ngx_output_chain.c index 4479eda..e2dcc4c 100644 --- a/src/core/ngx_output_chain.c +++ b/src/core/ngx_output_chain.c
@@ -473,7 +473,7 @@ size += ngx_buf_size(cl->buf); } - if (size == 0) { + if (size == 0 && !ctx->connection->buffered) { return NGX_OK; } @@ -489,6 +489,9 @@ if (ctx->out == NULL) { ctx->last = &ctx->out; + } + + if (!ctx->connection->buffered) { return NGX_OK; }