Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement MIME sniffing #5005

Merged
merged 6 commits into from Apr 7, 2015
Merged
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Next

Implement MIME sniffing.

  • Loading branch information
IdeaHat authored and jdm committed Apr 6, 2015
commit 44930b0fb0b150d141652ba4e0e9d99da4599d30
@@ -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();
@@ -47,6 +47,7 @@ pub mod pub_domains;
pub mod resource_task;
pub mod storage_task;
mod sniffer_task;
mod mime_classifier;

/// An implementation of the [Fetch spec](http://fetch.spec.whatwg.org/)
pub mod fetch {
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.