Add relevant sepc link for 'apache bug' mimesniff.

This commit is contained in:
Corey Farwell 2016-04-15 18:07:55 -04:00
parent 7c615233d8
commit 6c0927c289

View file

@ -113,6 +113,7 @@ pub fn start_sending_sniffed_opt(start_chan: LoadConsumer, mut metadata: Metadat
start_sending_opt(start_chan, metadata)
}
/// https://mimesniff.spec.whatwg.org/#supplied-mime-type-detection-algorithm
fn apache_bug_predicate(last_raw_content_type: &[u8]) -> ApacheBugFlag {
if last_raw_content_type == b"text/plain"
|| last_raw_content_type == b"text/plain; charset=ISO-8859-1"