aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/xmlhttprequest.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/xmlhttprequest.rs')
-rw-r--r--components/script/dom/xmlhttprequest.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/xmlhttprequest.rs b/components/script/dom/xmlhttprequest.rs
index 961125bf25b..bd7d947b6bf 100644
--- a/components/script/dom/xmlhttprequest.rs
+++ b/components/script/dom/xmlhttprequest.rs
@@ -260,7 +260,7 @@ impl XMLHttpRequest {
// perhaps should be handled by the resource_loader?
spawn_named("XHR:Cors".to_owned(), move || {
let response = req2.http_fetch();
- chan.send(response);
+ chan.send(response).unwrap();
});
select! (
@@ -282,7 +282,7 @@ impl XMLHttpRequest {
}
// Step 10, 13
- resource_task.send(Load(load_data));
+ resource_task.send(Load(load_data)).unwrap();
let progress_port;