mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 17:30:09 +02:00
fix test.py bug on windows and stomped failure messages
This commit is contained in:
parent
637708cf1a
commit
eb17d81316
2 changed files with 27 additions and 22 deletions
|
@ -99,7 +99,7 @@ class PDFTestHandler(BaseHTTPRequestHandler):
|
|||
self.send_header("Content-Type", MIMEs[ext])
|
||||
self.send_header("Content-Length", os.path.getsize(path))
|
||||
self.end_headers()
|
||||
with open(path) as f:
|
||||
with open(path, "rb") as f:
|
||||
self.wfile.write(f.read())
|
||||
|
||||
def do_GET(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue