diff src/core/ngx_output_chain.c @ 304:e4f4cbfed5f5 NGINX_0_5_22

nginx 0.5.22 *) Bugfix: a big request body might not be passed to backend; bug appeared in 0.5.21.
author Igor Sysoev <http://sysoev.ru>
date Tue, 29 May 2007 00:00:00 +0400
parents 9b7db0df50f0
children 55328d69b335
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;