diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2007-07-08 09:16:36 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2007-07-08 09:16:36 +0000 |
| commit | 4d2e0f019811a727c525aebe2a4c5b0708c89de6 (patch) | |
| tree | 0abd69a0e952f4aca3565de68e9755957da94d08 /src/http/modules/ngx_http_fastcgi_module.c | |
| parent | 28eafa574ea8bd1f3bff2fcd0a6a0dd80e434b0b (diff) | |
| download | nginx-4d2e0f019811a727c525aebe2a4c5b0708c89de6.tar.gz nginx-4d2e0f019811a727c525aebe2a4c5b0708c89de6.tar.bz2 | |
when the FastCGI header was split in records,
nginx passed garbage in the header to a client
Diffstat (limited to 'src/http/modules/ngx_http_fastcgi_module.c')
| -rw-r--r-- | src/http/modules/ngx_http_fastcgi_module.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |
