aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/blob.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/blob.rs')
-rw-r--r--components/script/dom/blob.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/components/script/dom/blob.rs b/components/script/dom/blob.rs
index f8102dd9acf..7e101dc4070 100644
--- a/components/script/dom/blob.rs
+++ b/components/script/dom/blob.rs
@@ -123,9 +123,10 @@ impl BlobMethods for Blob {
};
let relativeContentType = match contentType {
None => "".to_owned(),
- Some(str) => {
+ Some(mut str) => {
if is_ascii_printable(&str) {
- str.to_ascii_lowercase()
+ str.make_ascii_lowercase();
+ str
} else {
"".to_owned()
}