changeset 1215:fb3ff245c96b

an request body might not be passed to backend, the bug was introduced in r1212
author Igor Sysoev <igor@sysoev.ru>
date Tue, 29 May 2007 12:06:42 +0000
parents d7af84c26645
children 533a252896c4
files src/core/ngx_output_chain.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/core/ngx_output_chain.c
+++ b/src/core/ngx_output_chain.c
@@ -489,10 +489,10 @@ ngx_chain_writer(void *data, ngx_chain_t
 
     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;