diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2007-09-15 16:54:58 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2007-09-15 16:54:58 +0000 |
| commit | 254353e40e73211ebcbbc9db468c2481a2b7101f (patch) | |
| tree | d2df28b668f8e6b989036e412b539b2da7ff791f /src | |
| parent | 48714085dde4fe4c5b695dad23295e3f96fe1d2e (diff) | |
| download | nginx-254353e40e73211ebcbbc9db468c2481a2b7101f.tar.gz nginx-254353e40e73211ebcbbc9db468c2481a2b7101f.tar.bz2 | |
the "proxy_hide_header" and "fastcgi_hide_header" directives did not
hide response header lines whose name was longer than 32 characters
Diffstat (limited to 'src')
| -rw-r--r-- | src/http/modules/ngx_http_fastcgi_module.c | 2 | ||||
| -rw-r--r-- | src/http/modules/ngx_http_proxy_module.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/http/modules/ngx_http_fastcgi_module.c b/src/http/modules/ngx_http_fastcgi_module.c index ac14d75ce..c63c0f382 100644 --- a/src/http/modules/ngx_http_fastcgi_module.c +++ b/src/http/modules/ngx_http_fastcgi_module.c @@ -1135,7 +1135,7 @@ ngx_http_fastcgi_process_header(ngx_http_request_t *r) } else { for (i = 0; i < h->key.len; i++) { - h->lowcase_key[i] = ngx_tolower(h->lowcase_key[i]); + h->lowcase_key[i] = ngx_tolower(h->key.data[i]); } } diff --git a/src/http/modules/ngx_http_proxy_module.c b/src/http/modules/ngx_http_proxy_module.c index 61b934f32..298d766a3 100644 --- a/src/http/modules/ngx_http_proxy_module.c +++ b/src/http/modules/ngx_http_proxy_module.c @@ -1141,7 +1141,7 @@ ngx_http_proxy_process_header(ngx_http_request_t *r) } else { for (i = 0; i < h->key.len; i++) { - h->lowcase_key[i] = ngx_tolower(h->lowcase_key[i]); + h->lowcase_key[i] = ngx_tolower(h->key.data[i]); } } |
