From ceb264a340e4d26dbdf66fcf65dc8d729f253a15 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 18 Jul 2020 19:26:05 +0100 Subject: [PATCH] debug --- daemon.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/daemon.py b/daemon.py index 7b6c81562..cd5a45097 100644 --- a/daemon.py +++ b/daemon.py @@ -1321,6 +1321,7 @@ class PubServer(BaseHTTPRequestHandler): # get fonts if htmlGET and '/fonts/' in self.path: fontStr = self.path.split('/fonts/')[1] + print('fontStr: ' + fontStr) if fontStr.endswith('.otf') or \ fontStr.endswith('.ttf') or \ fontStr.endswith('.woff') or \ @@ -1349,8 +1350,8 @@ class PubServer(BaseHTTPRequestHandler): return else: if os.path.isfile(fontFilename): - with open(fontFilename, 'rb') as avFile: - fontBinary = avFile.read() + with open(fontFilename, 'rb') as fontFile: + fontBinary = fontFile.read() self._set_headers_etag(fontFilename, fontType, fontBinary, cookie,