From 54b07bae916a71c69674ce356f727d1d05d272df Mon Sep 17 00:00:00 2001 From: Jonathan Giddy Date: Fri, 19 Feb 2016 13:11:41 +0000 Subject: [PATCH] Fix invalid MIME checkers --- components/net/mime_classifier.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/net/mime_classifier.rs b/components/net/mime_classifier.rs index bcc36c3e1b9..4b88850f0b4 100644 --- a/components/net/mime_classifier.rs +++ b/components/net/mime_classifier.rs @@ -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: &[] }