Mercurial > hg > nginx
diff src/http/ngx_http_request.c @ 2135:8c6521eedf84
ngx_strlow()
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 04 Aug 2008 10:07:00 +0000 |
parents | 9697407e9ecb |
children | 7a7c9e9024dd |
line wrap: on
line diff
--- a/src/http/ngx_http_request.c Mon Aug 04 09:14:30 2008 +0000 +++ b/src/http/ngx_http_request.c Mon Aug 04 10:07:00 2008 +0000 @@ -818,7 +818,6 @@ ssize_t n; ngx_int_t rc, rv; ngx_str_t header; - ngx_uint_t i; ngx_table_elt_t *h; ngx_connection_t *c; ngx_http_header_t *hh; @@ -928,9 +927,7 @@ ngx_memcpy(h->lowcase_key, r->lowcase_header, h->key.len); } else { - for (i = 0; i < h->key.len; i++) { - h->lowcase_key[i] = ngx_tolower(h->key.data[i]); - } + ngx_strlow(h->lowcase_key, h->key.data, h->key.len); } hh = ngx_hash_find(&cmcf->headers_in_hash, h->hash,