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; }