comparison src/http/modules/ngx_http_proxy_module.c @ 1532:44bd4db45b30 stable-0.5

r1489 merge: the "proxy_hide_header" and "fastcgi_hide_header" directives did not hide response header lines whose name was longer than 32 characters
author Igor Sysoev <igor@sysoev.ru>
date Sun, 23 Sep 2007 19:28:29 +0000
parents d916a5d7de28
children 389aeafc3b84
comparison
equal deleted inserted replaced
1531:8b04c0e37099 1532:44bd4db45b30
1139 if (h->key.len == r->lowcase_index) { 1139 if (h->key.len == r->lowcase_index) {
1140 ngx_memcpy(h->lowcase_key, r->lowcase_header, h->key.len); 1140 ngx_memcpy(h->lowcase_key, r->lowcase_header, h->key.len);
1141 1141
1142 } else { 1142 } else {
1143 for (i = 0; i < h->key.len; i++) { 1143 for (i = 0; i < h->key.len; i++) {
1144 h->lowcase_key[i] = ngx_tolower(h->lowcase_key[i]); 1144 h->lowcase_key[i] = ngx_tolower(h->key.data[i]);
1145 } 1145 }
1146 } 1146 }
1147 1147
1148 hh = ngx_hash_find(&umcf->headers_in_hash, h->hash, 1148 hh = ngx_hash_find(&umcf->headers_in_hash, h->hash,
1149 h->lowcase_key, h->key.len); 1149 h->lowcase_key, h->key.len);