Mercurial > hg > nginx
comparison src/http/modules/ngx_http_fastcgi_module.c @ 1275:11c5a854d4e2 stable-0.5
r1275 merge:
omit unnecessary conditions
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 09 Jul 2007 06:06:15 +0000 |
parents | e02f63bea768 |
children | 1494a23b1ed4 |
comparison
equal
deleted
inserted
replaced
1273:e02f63bea768 | 1275:11c5a854d4e2 |
---|---|
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 (rc == NGX_OK && u->buffer.pos == u->buffer.last) { | 1147 if (rc == NGX_OK) { |
1148 return NGX_AGAIN; | 1148 return NGX_AGAIN; |
1149 } | 1149 } |
1150 | 1150 |
1151 if (rc == NGX_AGAIN) { | 1151 /* rc == NGX_AGAIN */ |
1152 ngx_log_error(NGX_LOG_ALERT, r->connection->log, 0, | 1152 |
1153 "upstream split a header line in FastCGI records"); | 1153 ngx_log_error(NGX_LOG_ALERT, r->connection->log, 0, |
1154 | 1154 "upstream split a header line in FastCGI records"); |
1155 return NGX_HTTP_UPSTREAM_INVALID_HEADER; | 1155 |
1156 } | 1156 return NGX_HTTP_UPSTREAM_INVALID_HEADER; |
1157 } | 1157 } |
1158 } | 1158 } |
1159 | 1159 |
1160 | 1160 |
1161 static ngx_int_t | 1161 static ngx_int_t |