]> git.kaiwu.me - nginx.git/commitdiff
an request body might not be passed to backend,
authorIgor Sysoev <igor@sysoev.ru>
Tue, 29 May 2007 12:06:42 +0000 (12:06 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Tue, 29 May 2007 12:06:42 +0000 (12:06 +0000)
the bug was introduced in r1212

src/core/ngx_output_chain.c

index e2dcc4c527e3758bfd203ac65b625fa7f0fd3d93..cc635c9a93541d91126b2758616e2f8d1a8082b2 100644 (file)
@@ -489,10 +489,10 @@ ngx_chain_writer(void *data, ngx_chain_t *in)
 
     if (ctx->out == NULL) {
         ctx->last = &ctx->out;
-    }
 
-    if (!ctx->connection->buffered) {
-        return NGX_OK;
+        if (!ctx->connection->buffered) {
+            return NGX_OK;
+        }
     }
 
     return NGX_AGAIN;