]> git.kaiwu.me - nginx.git/commitdiff
r1273 merge:
authorIgor Sysoev <igor@sysoev.ru>
Sun, 8 Jul 2007 09:18:06 +0000 (09:18 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Sun, 8 Jul 2007 09:18:06 +0000 (09:18 +0000)
when the FastCGI header was split in records,
nginx passed garbage in the header to a client

src/http/modules/ngx_http_fastcgi_module.c

index 6daf6ce393e3ff804ed776ff2e6513a2364765b2..4263ea1edc28e3040d5bddd9a19f213de4bfc74b 100644 (file)
@@ -1144,7 +1144,7 @@ ngx_http_fastcgi_process_header(ngx_http_request_t *r)
             return NGX_OK;
         }
 
-        if (u->buffer.pos == u->buffer.last) {
+        if (rc == NGX_OK && u->buffer.pos == u->buffer.last) {
             return NGX_AGAIN;
         }