]> git.kaiwu.me - nginx.git/commitdiff
fix "proxy_pass https://"
authorIgor Sysoev <igor@sysoev.ru>
Mon, 28 May 2007 11:09:18 +0000 (11:09 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Mon, 28 May 2007 11:09:18 +0000 (11:09 +0000)
src/core/ngx_output_chain.c

index 4479edaccd226ca436552837e6ed73dbc4f92429..e2dcc4c527e3758bfd203ac65b625fa7f0fd3d93 100644 (file)
@@ -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;
     }