comparison src/http/modules/ngx_http_fastcgi_module.c @ 1274:7ffdd1bb86d5

omit unnecessary conditions
author Igor Sysoev <igor@sysoev.ru>
date Sun, 08 Jul 2007 09:38:37 +0000
parents ace48cc7a946
children 1494a23b1ed4
comparison
equal deleted inserted replaced
1272:ace48cc7a946 1274:7ffdd1bb86d5
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