comparison src/http/modules/ngx_http_fastcgi_module.c @ 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 863c3490103e
children 7ffdd1bb86d5
comparison
equal deleted inserted replaced
1271:2b3e6aede7da 1272:ace48cc7a946
1142 1142
1143 if (rc == NGX_HTTP_PARSE_HEADER_DONE) { 1143 if (rc == NGX_HTTP_PARSE_HEADER_DONE) {
1144 return NGX_OK; 1144 return NGX_OK;
1145 } 1145 }
1146 1146
1147 if (u->buffer.pos == u->buffer.last) { 1147 if (rc == NGX_OK && u->buffer.pos == u->buffer.last) {
1148 return NGX_AGAIN; 1148 return NGX_AGAIN;
1149 } 1149 }
1150 1150
1151 if (rc == NGX_AGAIN) { 1151 if (rc == NGX_AGAIN) {
1152 ngx_log_error(NGX_LOG_ALERT, r->connection->log, 0, 1152 ngx_log_error(NGX_LOG_ALERT, r->connection->log, 0,