mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Fix invalid MIME checkers
This commit is contained in:
parent
208bae7f2e
commit
54b07bae91
1 changed files with 3 additions and 3 deletions
|
@ -678,7 +678,7 @@ impl ByteMatcher {
|
|||
fn image_webp() -> ByteMatcher {
|
||||
ByteMatcher {
|
||||
pattern: b"RIFF\x00\x00\x00\x00WEBPVP",
|
||||
mask: b"\xFF\xFF\xFF\xFF\x00\x00\x00\x00,\xFF\xFF\xFF\xFF\xFF\xFF",
|
||||
mask: b"\xFF\xFF\xFF\xFF\x00\x00\x00\x00\xFF\xFF\xFF\xFF\xFF\xFF",
|
||||
content_type: ("image", "webp"),
|
||||
leading_ignore: &[]
|
||||
}
|
||||
|
@ -742,7 +742,7 @@ impl ByteMatcher {
|
|||
fn application_ogg() -> ByteMatcher {
|
||||
ByteMatcher {
|
||||
pattern: b"OggS",
|
||||
mask: b"\xFF\xFF\xFF\xFF\xFF",
|
||||
mask: b"\xFF\xFF\xFF\xFF",
|
||||
content_type: ("application", "ogg"),
|
||||
leading_ignore: &[]
|
||||
}
|
||||
|
@ -992,7 +992,7 @@ impl ByteMatcher {
|
|||
fn application_pdf() -> ByteMatcher {
|
||||
ByteMatcher {
|
||||
pattern: b"%PDF",
|
||||
mask: b"\xFF\xFF\xFF\xFF\xFF",
|
||||
mask: b"\xFF\xFF\xFF\xFF",
|
||||
content_type: ("application", "pdf"),
|
||||
leading_ignore: &[]
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue