Mercurial > hg > nginx
comparison src/http/ngx_http_request.c @ 1107:db7c468c447d
ngx_strcasecmp()/ngx_strncasecmp()
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Wed, 14 Feb 2007 18:51:19 +0000 |
parents | 9de12c8d8943 |
children | 82da2c898923 |
comparison
equal
deleted
inserted
replaced
1106:2c7fed12fab7 | 1107:db7c468c447d |
---|---|
1283 return NGX_ERROR; | 1283 return NGX_ERROR; |
1284 } | 1284 } |
1285 | 1285 |
1286 if (r->headers_in.connection) { | 1286 if (r->headers_in.connection) { |
1287 if (r->headers_in.connection->value.len == 5 | 1287 if (r->headers_in.connection->value.len == 5 |
1288 && ngx_strcasecmp(r->headers_in.connection->value.data, "close") | 1288 && ngx_strcasecmp(r->headers_in.connection->value.data, |
1289 (u_char *) "close") | |
1289 == 0) | 1290 == 0) |
1290 { | 1291 { |
1291 r->headers_in.connection_type = NGX_HTTP_CONNECTION_CLOSE; | 1292 r->headers_in.connection_type = NGX_HTTP_CONNECTION_CLOSE; |
1292 | 1293 |
1293 } else if (r->headers_in.connection->value.len == 10 | 1294 } else if (r->headers_in.connection->value.len == 10 |
1294 && ngx_strcasecmp(r->headers_in.connection->value.data, | 1295 && ngx_strcasecmp(r->headers_in.connection->value.data, |
1295 "keep-alive") == 0) | 1296 (u_char *) "keep-alive") |
1297 == 0) | |
1296 { | 1298 { |
1297 r->headers_in.connection_type = NGX_HTTP_CONNECTION_KEEP_ALIVE; | 1299 r->headers_in.connection_type = NGX_HTTP_CONNECTION_KEEP_ALIVE; |
1298 | 1300 |
1299 if (r->headers_in.keep_alive) { | 1301 if (r->headers_in.keep_alive) { |
1300 r->headers_in.keep_alive_n = | 1302 r->headers_in.keep_alive_n = |