aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/script_thread.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/script_thread.rs')
-rw-r--r--components/script/script_thread.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/script_thread.rs b/components/script/script_thread.rs
index c6f9dda250c..fd5fe44962f 100644
--- a/components/script/script_thread.rs
+++ b/components/script/script_thread.rs
@@ -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()));