From acac00332e28576ca7e154cf9cdc9f661af65a53 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Tue, 29 May 2007 12:06:42 +0000 Subject: [PATCH] an request body might not be passed to backend, the bug was introduced in r1212 --- src/core/ngx_output_chain.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/ngx_output_chain.c b/src/core/ngx_output_chain.c index e2dcc4c52..cc635c9a9 100644 --- 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 *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;