From 9601d555cd86da80f9e93adf4458489439283a71 Mon Sep 17 00:00:00 2001 From: Josh Matthews Date: Sun, 25 Oct 2015 11:48:41 -0400 Subject: [PATCH] Use valid MIME types in the font classifier. --- 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 019ee75eaea..6313d56a596 100644 --- a/components/net/mime_classifier.rs +++ b/components/net/mime_classifier.rs @@ -971,7 +971,7 @@ impl ByteMatcher { ByteMatcher { pattern: b"\x00\x01\x00\x00", mask: b"\xFF\xFF\xFF\xFF", - content_type: ("(TrueType)", ""), + content_type: ("application", "font-sfnt"), leading_ignore: &[] } } @@ -982,7 +982,7 @@ impl ByteMatcher { ByteMatcher { pattern: b"OTTO", mask: b"\xFF\xFF\xFF\xFF", - content_type: ("(OpenType)", ""), + content_type: ("application", "font-sfnt"), leading_ignore: &[] } } @@ -993,7 +993,7 @@ impl ByteMatcher { ByteMatcher { pattern: b"ttcf", mask: b"\xFF\xFF\xFF\xFF", - content_type: ("(TrueType Collection)", ""), + content_type: ("application", "font-sfnt"), leading_ignore: &[] } }