Implement MIME sniffing.

This commit is contained in:
Nathan Climer 2014-11-14 08:45:32 -05:00 committed by Josh Matthews
parent a277036dd9
commit 44930b0fb0
105 changed files with 2021 additions and 2 deletions

View file

@ -96,7 +96,7 @@ fn assert_parse(url: &'static str,
use sniffer_task;
let (start_chan, start_port) = channel();
let sniffer_task = sniffer_task::new_sniffer_task();
let sniffer_task = sniffer_task::new_mock_sniffer_task();
load(LoadData::new(Url::parse(url).unwrap(), start_chan), sniffer_task);
let response = start_port.recv().unwrap();