]> git.kaiwu.me - nginx.git/commitdiff
fix large stderr handling without http cache
authorIgor Sysoev <igor@sysoev.ru>
Thu, 20 Jan 2011 12:23:00 +0000 (12:23 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Thu, 20 Jan 2011 12:23:00 +0000 (12:23 +0000)
patch by Maxim Dounin
the bug has been introduced in r3461

src/http/modules/ngx_http_fastcgi_module.c

index 04b01fbaba40ee364d63add18a7a74eb8d5b6121..12a1e81d89965c45d28cdaf6c42e4d5e6b204329 100644 (file)
@@ -1280,8 +1280,9 @@ ngx_http_fastcgi_process_header(ngx_http_request_t *r)
                         } else {
                             u->buffer.pos = u->buffer.start;
                         }
+#else
+                        u->buffer.pos = u->buffer.start;
 #endif
-
                         u->buffer.last = u->buffer.pos;
                         f->large_stderr = 1;
                     }