mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Update Blob::{new, new_inherited} to take Strings
This commit is contained in:
parent
3b98ce0dcc
commit
af325a9a3a
5 changed files with 13 additions and 14 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue