diff src/http/modules/ngx_http_fastcgi_module.c @ 1273:e02f63bea768 stable-0.5

r1273 merge: when the FastCGI header was split in records, nginx passed garbage in the header to a client
author Igor Sysoev <igor@sysoev.ru>
date Sun, 08 Jul 2007 09:18:06 +0000
parents 863c3490103e
children 7ffdd1bb86d5
line wrap: on
line diff
--- a/src/http/modules/ngx_http_fastcgi_module.c
+++ b/src/http/modules/ngx_http_fastcgi_module.c
@@ -1144,7 +1144,7 @@ ngx_http_fastcgi_process_header(ngx_http
             return NGX_OK;
         }
 
-        if (u->buffer.pos == u->buffer.last) {
+        if (rc == NGX_OK && u->buffer.pos == u->buffer.last) {
             return NGX_AGAIN;
         }