diff options
Diffstat (limited to 'components/script/dom/xmlhttprequest.rs')
-rw-r--r-- | components/script/dom/xmlhttprequest.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/xmlhttprequest.rs b/components/script/dom/xmlhttprequest.rs index 528e531c496..f9ba44d560f 100644 --- a/components/script/dom/xmlhttprequest.rs +++ b/components/script/dom/xmlhttprequest.rs @@ -1334,7 +1334,7 @@ impl XMLHttpRequest { let mime = self .final_mime_type() .as_ref() - .map(|m| normalize_type_string(&m.to_string())) + .map(|m| normalize_type_string(m.as_ref())) .unwrap_or("".to_owned()); // Step 3, 4 |