Mercurial > hg > nginx
comparison src/http/modules/ngx_http_proxy_module.c @ 1488:0e66eabd18b5
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 | Sat, 15 Sep 2007 16:54:58 +0000 |
parents | 943f2ba615cd |
children | 022ec9420f80 |
comparison
equal
deleted
inserted
replaced
1487:f69493e8faab | 1488:0e66eabd18b5 |
---|---|
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); |