diff options
author | shanehandley <1322294+shanehandley@users.noreply.github.com> | 2024-09-28 02:05:55 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-27 16:05:55 +0000 |
commit | c7ef974968c32d58e6fdd3213965c0f88ee6e4a5 (patch) | |
tree | 130064a5469462c657946e1b55d2b84bc4392b8c /components/shared/net/response.rs | |
parent | f96a62f0cea059677a4f51012bcdf96384485525 (diff) | |
download | servo-c7ef974968c32d58e6fdd3213965c0f88ee6e4a5.tar.gz servo-c7ef974968c32d58e6fdd3213965c0f88ee6e4a5.zip |
fetch: header tweaks to improve compliance with fetch spec (#33562)
* fetch: various header tweaks to improve compliance with fetch spec
Signed-off-by: Shane Handley <shanehandley@fastmail.com>
* fix: simplify the authorization header removal
Signed-off-by: Shane Handley <shanehandley@fastmail.com>
---------
Signed-off-by: Shane Handley <shanehandley@fastmail.com>
Diffstat (limited to 'components/shared/net/response.rs')
-rw-r--r-- | components/shared/net/response.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/shared/net/response.rs b/components/shared/net/response.rs index 338cc002ac7..c4b009db72a 100644 --- a/components/shared/net/response.rs +++ b/components/shared/net/response.rs @@ -267,7 +267,7 @@ impl Response { ResponseType::Cors => { let headers = old_headers.iter().filter(|(name, _)| { match &*name.as_str().to_ascii_lowercase() { - "cache-control" | "content-language" | "content-type" | + "cache-control" | "content-language" | "content-length" | "content-type" | "expires" | "last-modified" | "pragma" => true, "set-cookie" | "set-cookie2" => false, header => { |