diff options
author | Igor Sysoev <igor@sysoev.ru> | 2008-08-04 10:07:00 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2008-08-04 10:07:00 +0000 |
commit | 777b019c7338b6a67f639bb86b90711055709c53 (patch) | |
tree | 9bac0517c1d4e6d1690d2738284c89b382eec38e /src/http/ngx_http_request.c | |
parent | eb3e4c8be00d6353b5e545a75f9abda0b154585c (diff) | |
download | nginx-777b019c7338b6a67f639bb86b90711055709c53.tar.gz nginx-777b019c7338b6a67f639bb86b90711055709c53.zip |
ngx_strlow()
Diffstat (limited to 'src/http/ngx_http_request.c')
-rw-r--r-- | src/http/ngx_http_request.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/http/ngx_http_request.c b/src/http/ngx_http_request.c index 9aad1a487..ec36f5086 100644 --- a/src/http/ngx_http_request.c +++ b/src/http/ngx_http_request.c @@ -818,7 +818,6 @@ ngx_http_process_request_headers(ngx_event_t *rev) 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_http_process_request_headers(ngx_event_t *rev) 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, |