aboutsummaryrefslogtreecommitdiffstats
path: root/components/net/fetch
diff options
context:
space:
mode:
author2shiori17 <98276492+2shiori17@users.noreply.github.com>2023-03-26 20:07:12 +0900
committer2shiori17 <98276492+2shiori17@users.noreply.github.com>2023-03-26 20:07:12 +0900
commitb7d0451d562300cba781b164033d77cf4444749a (patch)
tree16990f867d8d107b2e88e2931fcbc38ee7aeabeb /components/net/fetch
parentb6e4e44ccf4c963e03cc47e5a623ac95b8290970 (diff)
downloadservo-b7d0451d562300cba781b164033d77cf4444749a.tar.gz
servo-b7d0451d562300cba781b164033d77cf4444749a.zip
Fix concept-header-list-get-decode-split
Diffstat (limited to 'components/net/fetch')
-rw-r--r--components/net/fetch/headers.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/net/fetch/headers.rs b/components/net/fetch/headers.rs
index e88fe641866..54fbe636f6f 100644
--- a/components/net/fetch/headers.rs
+++ b/components/net/fetch/headers.rs
@@ -26,16 +26,16 @@ fn get_header_value_as_list(name: &str, headers: &HeaderMap) -> Option<Vec<Strin
return c != '\u{0022}' && c != '\u{002C}';
}
- // https://fetch.spec.whatwg.org/#header-value-get-decode-and-split
// Step 1
let initial_value = get_value_from_header_list(name, headers);
if let Some(input) = initial_value {
+ // https://fetch.spec.whatwg.org/#header-value-get-decode-and-split
// Step 1
let input = input.into_iter().map(|u| char::from(u)).collect::<String>();
// Step 2
- let mut position = s.chars().peekable();
+ let mut position = input.chars().peekable();
// Step 3
let mut values: Vec<String> = vec![];