mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Fix concept-header-list-get-decode-split
This commit is contained in:
parent
b6e4e44ccf
commit
b7d0451d56
1 changed files with 2 additions and 2 deletions
|
@ -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![];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue