mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Fix PDF signature to match spec
This commit is contained in:
parent
6ea656c6c5
commit
4721fd1c6a
1 changed files with 2 additions and 2 deletions
|
@ -1006,8 +1006,8 @@ impl ByteMatcher {
|
||||||
//The string "%PDF-", the PDF signature.
|
//The string "%PDF-", the PDF signature.
|
||||||
fn application_pdf() -> ByteMatcher {
|
fn application_pdf() -> ByteMatcher {
|
||||||
ByteMatcher {
|
ByteMatcher {
|
||||||
pattern: b"%PDF",
|
pattern: b"%PDF-",
|
||||||
mask: b"\xFF\xFF\xFF\xFF",
|
mask: b"\xFF\xFF\xFF\xFF\xFF",
|
||||||
content_type: ("application", "pdf"),
|
content_type: ("application", "pdf"),
|
||||||
leading_ignore: &[]
|
leading_ignore: &[]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue