mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Implement concept-header-list-sort-and-combine
This commit is contained in:
parent
4ee3f575f6
commit
ee1f241231
4 changed files with 24 additions and 12 deletions
|
@ -157,7 +157,7 @@ fn collect_http_quoted_string(position: &mut Peekable<Chars>, extract_value: boo
|
|||
}
|
||||
|
||||
/// <https://fetch.spec.whatwg.org/#concept-header-list-get>
|
||||
fn get_value_from_header_list(name: &str, headers: &HeaderMap) -> Option<String> {
|
||||
pub fn get_value_from_header_list(name: &str, headers: &HeaderMap) -> Option<String> {
|
||||
let values = headers
|
||||
.get_all(name)
|
||||
.iter()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue