mirror of
https://github.com/nginx/nginx.git
synced 2026-08-03 22:33:10 +00: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
2 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue