mirror of
https://github.com/servo/servo.git
synced 2025-06-13 02:44:29 +00: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
|
@ -2183,7 +2183,7 @@ impl ScriptThread {
|
|||
|
||||
let content_type = metadata.content_type
|
||||
.as_ref()
|
||||
.map(|&Serde(ContentType(ref mimetype))| DOMString::from(mimetype.to_string()));
|
||||
.map(|&Serde(ContentType(ref mimetype))| mimetype.clone());
|
||||
|
||||
let loader = DocumentLoader::new_with_threads(self.resource_threads.clone(),
|
||||
Some(final_url.clone()));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue