mirror of
https://github.com/nginx/nginx.git
synced 2025-08-05 22:26:15 +08:00
fix "proxy_pass https://"
This commit is contained in:
parent
da8c05a5fd
commit
b8ddf754f9
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user