changeset 1272:ace48cc7a946

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:16:36 +0000
parents 2b3e6aede7da
children 7ffdd1bb86d5
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;
         }