mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Updated content_type of Document and XMLDocument from DOCString to Mime
This commit is contained in:
parent
1662fd7357
commit
d02422408e
6 changed files with 23 additions and 21 deletions
|
@ -1271,10 +1271,7 @@ impl XMLHttpRequest {
|
|||
Ok(parsed) => Some(parsed),
|
||||
Err(_) => None // Step 7
|
||||
};
|
||||
let mime_type = self.final_mime_type();
|
||||
let content_type = mime_type.map(|mime|{
|
||||
DOMString::from(format!("{}", mime))
|
||||
});
|
||||
let content_type = self.final_mime_type();
|
||||
Document::new(win,
|
||||
HasBrowsingContext::No,
|
||||
parsed_url,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue