mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Add relevant sepc link for 'apache bug' mimesniff.
This commit is contained in:
parent
7c615233d8
commit
6c0927c289
1 changed files with 1 additions and 0 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue