mirror of
https://github.com/servo/servo.git
synced 2025-08-07 22:45:34 +01:00
Don't lose information in Fetch API
Also update test expectations.
This commit is contained in:
parent
f838944332
commit
0f1eb13e33
23 changed files with 45 additions and 259 deletions
|
@ -32,7 +32,7 @@ fn assert_parse(url: &'static str,
|
|||
assert_eq!(header_content_type, content_type.as_ref());
|
||||
|
||||
let metadata = match response.metadata() {
|
||||
Ok(FetchMetadata::Filtered { filtered: FilteredMetadata::Transparent(m), .. }) => m,
|
||||
Ok(FetchMetadata::Filtered { filtered: FilteredMetadata::Basic(m), .. }) => m,
|
||||
result => panic!(result),
|
||||
};
|
||||
assert_eq!(metadata.content_type.map(Serde::into_inner), content_type);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue