Mercurial > hg > nginx
diff src/http/modules/ngx_http_proxy_module.c @ 2135:8c6521eedf84
ngx_strlow()
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 04 Aug 2008 10:07:00 +0000 |
parents | 5657037448d1 |
children | 274c0f3ea600 |
line wrap: on
line diff
--- a/src/http/modules/ngx_http_proxy_module.c Mon Aug 04 09:14:30 2008 +0000 +++ b/src/http/modules/ngx_http_proxy_module.c Mon Aug 04 10:07:00 2008 +0000 @@ -1196,7 +1196,6 @@ ngx_http_proxy_process_header(ngx_http_request_t *r) { ngx_int_t rc; - ngx_uint_t i; ngx_table_elt_t *h; ngx_http_upstream_header_t *hh; ngx_http_upstream_main_conf_t *umcf; @@ -1237,9 +1236,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(&umcf->headers_in_hash, h->hash,