Skip to content

Commit

Permalink
Fix PDF signature to match spec
Browse files Browse the repository at this point in the history
  • Loading branch information
jongiddy committed Feb 23, 2016
1 parent 6ea656c commit 4721fd1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/net/mime_classifier.rs
Expand Up @@ -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: &[]
}
Expand Down

0 comments on commit 4721fd1

Please sign in to comment.