]> git.kaiwu.me - nginx.git/commitdiff
r2464 merge:
authorIgor Sysoev <igor@sysoev.ru>
Wed, 1 Apr 2009 16:21:05 +0000 (16:21 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Wed, 1 Apr 2009 16:21:05 +0000 (16:21 +0000)
fix fastcgi_store

src/http/ngx_http_upstream.c

index 6eee8832e3899e85e6d146dee68f13a085058b35..0f97009677d655aa55730203bfff7d139c96aade 100644 (file)
@@ -2059,7 +2059,7 @@ ngx_http_upstream_process_body(ngx_event_t *ev)
 
             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