Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nginx/nginx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2007-05-28 15:09:18 +0400
committerIgor Sysoev <igor@sysoev.ru>2007-05-28 15:09:18 +0400
commitb8ddf754f9d4d46524cc05ae7d8884186bce44e4 (patch)
treeda0d4c5cc19513d339fafe8ea425ac23f53184df /src
parentda8c05a5fd0e85bad4edbe4bf1206a5dd5e11313 (diff)
fix "proxy_pass https://"
Diffstat (limited to 'src')
-rw-r--r--src/core/ngx_output_chain.c5
1 files changed, 4 insertions, 1 deletions
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;
}