changeset 2645:2baa184412b8 stable-0.6

r2464 merge: fix fastcgi_store
author Igor Sysoev <igor@sysoev.ru>
date Wed, 01 Apr 2009 16:21:05 +0000
parents 2682d042328d
children f4aea5b40fd7
files src/http/ngx_http_upstream.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/http/ngx_http_upstream.c
+++ b/src/http/ngx_http_upstream.c
@@ -2059,7 +2059,7 @@ ngx_http_upstream_process_body(ngx_event
 
             tf = u->pipe->temp_file;
 
-            if (p->upstream_eof) {
+            if (p->upstream_eof || p->upstream_done) {
 
                 if (u->headers_in.status_n == NGX_HTTP_OK
                     && (u->headers_in.content_length_n == -1