mirror of
https://github.com/nginx/nginx.git
synced 2024-12-20 06:03:31 -06:00
the "proxy_hide_header" and "fastcgi_hide_header" directives did not
hide response header lines whose name was longer than 32 characters
This commit is contained in:
parent
48714085dd
commit
254353e40e
@ -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]);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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]);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user