mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Resolves #4183 - Implemementing context-based MIME type sniffing
The version of the standard is not finalized at the time of this writing. Specifications may be found here: https://mimesniff.spec.whatwg.org/#context-specific-sniffing .
This commit is contained in:
parent
66c8aa8cda
commit
1e81b8c133
18 changed files with 226 additions and 93 deletions
|
@ -29,7 +29,11 @@ pub fn factory(mut load_data: LoadData,
|
|||
headers: None,
|
||||
status: Some(RawStatus(200, "OK".into())),
|
||||
};
|
||||
if let Ok(chan) = start_sending_sniffed_opt(start_chan, metadata, classifier, &[]) {
|
||||
if let Ok(chan) = start_sending_sniffed_opt(start_chan,
|
||||
metadata,
|
||||
classifier,
|
||||
&[],
|
||||
load_data.context) {
|
||||
let _ = chan.send(Done(Ok(())));
|
||||
}
|
||||
return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue