# HG changeset patch # User Igor Sysoev # Date 1183886196 0 # Node ID ace48cc7a9468ca778a57a0d52c39af7b0ed7664 # Parent 2b3e6aede7daa39ae805740780f856a4c3c326fa when the FastCGI header was split in records, nginx passed garbage in the header to a client diff --git a/src/http/modules/ngx_http_fastcgi_module.c b/src/http/modules/ngx_http_fastcgi_module.c --- 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; }