aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/xmlhttprequest.rs
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2016-06-17 09:52:38 -0500
committerGitHub <noreply@github.com>2016-06-17 09:52:38 -0500
commit9208b8e21493b4a7721ff780691ffec193ef8a32 (patch)
tree432e19a1d83138eeeba989aef72e4f62c0d07792 /components/script/dom/xmlhttprequest.rs
parent324548f9b67e51978cfc5da9d19676e942582d9d (diff)
parentaf325a9a3a8685f3911dd30169c11b2252432ab2 (diff)
downloadservo-9208b8e21493b4a7721ff780691ffec193ef8a32.tar.gz
servo-9208b8e21493b4a7721ff780691ffec193ef8a32.zip
Auto merge of #11768 - achals:blob-string, r=Ms2ger
Update Blob::{new, new_inherited} to take Strings <!-- Please describe your changes on the following line: --> --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #11762. <!-- Either: --> - [ ] There are tests for these changes OR - [X] These changes do not require tests because no logic changes, only interface changes. <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11768) <!-- Reviewable:end -->
Diffstat (limited to 'components/script/dom/xmlhttprequest.rs')
-rw-r--r--components/script/dom/xmlhttprequest.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/xmlhttprequest.rs b/components/script/dom/xmlhttprequest.rs
index edae06fe66c..b99cf70dbe3 100644
--- a/components/script/dom/xmlhttprequest.rs
+++ b/components/script/dom/xmlhttprequest.rs
@@ -1111,7 +1111,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
}