mirror of
https://github.com/servo/servo.git
synced 2025-08-09 07:25:35 +01:00
1. Add an Option<Pipeline_id> field to the LoadData struct, and a corresponding parameter to LoadData::new()
2. Change addEvent in the NetworkEventActor to add_request and add_response
This commit is contained in:
parent
6e91ebb1fe
commit
01eb31ae8a
18 changed files with 152 additions and 151 deletions
|
@ -20,7 +20,7 @@ fn assert_parse(url: &'static str,
|
|||
use net::data_loader::load;
|
||||
|
||||
let (start_chan, start_port) = channel();
|
||||
load(LoadData::new(Url::parse(url).unwrap()), Channel(start_chan));
|
||||
load(LoadData::new(Url::parse(url).unwrap(), None), Channel(start_chan));
|
||||
|
||||
let response = start_port.recv().unwrap();
|
||||
assert_eq!(&response.metadata.content_type, &content_type);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue