mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 17:30:09 +02:00
Fix inverted B/W images in PIPEHEATCABLE.PDF
This commit is contained in:
parent
5771d0b827
commit
db09e34f71
2 changed files with 14 additions and 10 deletions
|
@ -136,7 +136,7 @@ class PDFTestHandler(BaseHTTPRequestHandler):
|
|||
path, _ = url.path, url.query
|
||||
path = os.path.abspath(os.path.realpath(DOC_ROOT + os.sep + path))
|
||||
prefix = os.path.commonprefix(( path, DOC_ROOT ))
|
||||
_, ext = os.path.splitext(path)
|
||||
_, ext = os.path.splitext(path.lower())
|
||||
|
||||
if url.path == "/favicon.ico":
|
||||
self.sendFile(os.path.join(DOC_ROOT, "test", "resources", "favicon.ico"), ext)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue