diff options
-rw-r--r-- | components/net/fetch/headers.rs | 4 |
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![]; |