Mercurial > hg > nginx
comparison src/http/modules/ngx_http_fastcgi_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 | cd586e963db0 |
children | 022ec9420f80 |
comparison
equal
deleted
inserted
replaced
1487:f69493e8faab | 1488:0e66eabd18b5 |
---|---|
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); |