changeset 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 b8fab2c5dac9
children 11c5a854d4e2
files src/http/modules/ngx_http_fastcgi_module.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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;
         }