diff --git a/components/net/mime_classifier.rs b/components/net/mime_classifier.rs index d00a3251ec8..3b97566f018 100644 --- a/components/net/mime_classifier.rs +++ b/components/net/mime_classifier.rs @@ -1006,8 +1006,8 @@ impl ByteMatcher { //The string "%PDF-", the PDF signature. fn application_pdf() -> ByteMatcher { ByteMatcher { - pattern: b"%PDF", - mask: b"\xFF\xFF\xFF\xFF", + pattern: b"%PDF-", + mask: b"\xFF\xFF\xFF\xFF\xFF", content_type: ("application", "pdf"), leading_ignore: &[] }