comparison src/http/modules/ngx_http_fastcgi_module.c @ 2135:8c6521eedf84

ngx_strlow()
author Igor Sysoev <igor@sysoev.ru>
date Mon, 04 Aug 2008 10:07:00 +0000
parents 2a92804f4109
children dce5ddef5af9
comparison
equal deleted inserted replaced
2134:13652cba8633 2135:8c6521eedf84
1118 1118
1119 if (h->key.len == r->lowcase_index) { 1119 if (h->key.len == r->lowcase_index) {
1120 ngx_memcpy(h->lowcase_key, r->lowcase_header, h->key.len); 1120 ngx_memcpy(h->lowcase_key, r->lowcase_header, h->key.len);
1121 1121
1122 } else { 1122 } else {
1123 for (i = 0; i < h->key.len; i++) { 1123 ngx_strlow(h->lowcase_key, h->key.data, h->key.len);
1124 h->lowcase_key[i] = ngx_tolower(h->key.data[i]);
1125 }
1126 } 1124 }
1127 1125
1128 hh = ngx_hash_find(&umcf->headers_in_hash, h->hash, 1126 hh = ngx_hash_find(&umcf->headers_in_hash, h->hash,
1129 h->lowcase_key, h->key.len); 1127 h->lowcase_key, h->key.len);
1130 1128