Fix PDF signature to match spec

This commit is contained in:
Jonathan Giddy 2016-02-23 14:09:56 +00:00
parent 6ea656c6c5
commit 4721fd1c6a

View file

@ -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: &[]
}