Fix inverted B/W images in PIPEHEATCABLE.PDF

This commit is contained in:
notmasteryet 2011-08-28 16:14:37 -05:00
parent 5771d0b827
commit db09e34f71
2 changed files with 14 additions and 10 deletions

View file

@ -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)