From 4d2e0f019811a727c525aebe2a4c5b0708c89de6 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Sun, 8 Jul 2007 09:16:36 +0000 Subject: [PATCH] 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/http/modules/ngx_http_fastcgi_module.c b/src/http/modules/ngx_http_fastcgi_module.c index 6daf6ce39..4263ea1ed 100644 --- 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_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; }