comparison src/http/modules/ngx_http_fastcgi_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 b7d39d0b0025
children 389aeafc3b84
comparison
equal deleted inserted replaced
1531:8b04c0e37099 1532:44bd4db45b30
1133 if (h->key.len == r->lowcase_index) { 1133 if (h->key.len == r->lowcase_index) {
1134 ngx_memcpy(h->lowcase_key, r->lowcase_header, h->key.len); 1134 ngx_memcpy(h->lowcase_key, r->lowcase_header, h->key.len);
1135 1135
1136 } else { 1136 } else {
1137 for (i = 0; i < h->key.len; i++) { 1137 for (i = 0; i < h->key.len; i++) {
1138 h->lowcase_key[i] = ngx_tolower(h->lowcase_key[i]); 1138 h->lowcase_key[i] = ngx_tolower(h->key.data[i]);
1139 } 1139 }
1140 } 1140 }
1141 1141
1142 hh = ngx_hash_find(&umcf->headers_in_hash, h->hash, 1142 hh = ngx_hash_find(&umcf->headers_in_hash, h->hash,
1143 h->lowcase_key, h->key.len); 1143 h->lowcase_key, h->key.len);