Remove extra mask byte in MIME type detection

This commit is contained in:
Jonathan Giddy 2016-02-14 08:18:14 +00:00
parent 3f74c07e20
commit 8950d7aa6d

View file

@ -744,7 +744,7 @@ impl ByteMatcher {
TagTerminatedByteMatcher {
matcher: ByteMatcher {
pattern: b"<HTML",
mask: b"\xFF\xDF\xDF\xDF\xDF\xFF",
mask: b"\xFF\xDF\xDF\xDF\xDF",
content_type: ("text", "html"),
leading_ignore: b"\t\n\x0C\r "
}