aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/html/hubbub_html_parser.rs
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2014-05-28 11:28:33 +0530
committerManish Goregaokar <manishsmail@gmail.com>2014-05-28 20:49:13 +0530
commit5f860bb61221d9fc1afce35e896db2805e4cdb5b (patch)
treefd93bbe8d2b24b2689e62e47dc93b5da775c7077 /src/components/script/html/hubbub_html_parser.rs
parent096eea8369fbd15f2412d52988259eb598b7d306 (diff)
downloadservo-5f860bb61221d9fc1afce35e896db2805e4cdb5b.tar.gz
servo-5f860bb61221d9fc1afce35e896db2805e4cdb5b.zip
Request header and postdata support for XHR
Diffstat (limited to 'src/components/script/html/hubbub_html_parser.rs')
-rw-r--r--src/components/script/html/hubbub_html_parser.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/script/html/hubbub_html_parser.rs b/src/components/script/html/hubbub_html_parser.rs
index 5abde8be0d3..d06f6191700 100644
--- a/src/components/script/html/hubbub_html_parser.rs
+++ b/src/components/script/html/hubbub_html_parser.rs
@@ -18,7 +18,7 @@ use script_task::Page;
use hubbub::hubbub;
use hubbub::hubbub::{NullNs, XLinkNs, XmlNs, XmlNsNs};
-use servo_net::resource_task::{Load, Payload, Done, ResourceTask, load_whole_resource};
+use servo_net::resource_task::{Load, LoadData, Payload, Done, ResourceTask, load_whole_resource};
use servo_util::namespace;
use servo_util::namespace::Null;
use servo_util::str::{DOMString, HTML_SPACE_CHARACTERS};
@@ -312,7 +312,7 @@ pub fn parse_html(page: &Page,
// Wait for the LoadResponse so that the parser knows the final URL.
let (input_chan, input_port) = channel();
- resource_task.send(Load(url.clone(), input_chan));
+ resource_task.send(Load(LoadData::new(url.clone()), input_chan));
let load_response = input_port.recv();
debug!("Fetched page; metadata is {:?}", load_response.metadata);