Skip to content

Commit

Permalink
Fix invalid MIME checkers
Browse files Browse the repository at this point in the history
  • Loading branch information
jongiddy committed Feb 19, 2016
1 parent 208bae7 commit 54b07ba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions components/net/mime_classifier.rs
Expand Up @@ -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: &[]
}
Expand Down Expand Up @@ -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: &[]
}
Expand Down Expand Up @@ -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: &[]
}
Expand Down

0 comments on commit 54b07ba

Please sign in to comment.