Update Blob::{new, new_inherited} to take Strings

This commit is contained in:
Achal Shah 2016-06-16 23:29:09 -07:00
parent 3b98ce0dcc
commit af325a9a3a
5 changed files with 13 additions and 14 deletions

View file

@ -1117,7 +1117,7 @@ impl XMLHttpRequest {
// Step 3, 4
let slice = DataSlice::from_bytes(self.response.borrow().to_vec());
let blob = Blob::new(self.global().r(), BlobImpl::new_from_slice(slice), &mime);
let blob = Blob::new(self.global().r(), BlobImpl::new_from_slice(slice), mime);
self.response_blob.set(Some(blob.r()));
blob
}