From e6fb9842dd3cafc890b1c2a3482052ad32766bfb Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 25 May 2020 12:52:10 +0100 Subject: [PATCH] Detecting fonts --- daemon.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon.py b/daemon.py index 4d5516bf..72026450 100644 --- a/daemon.py +++ b/daemon.py @@ -1739,7 +1739,7 @@ class PubServer(BaseHTTPRequestHandler): self._benchmarkGETtimings(GETstartTime, GETtimings, 21) # get fonts - if self.path.startswith('/fonts/'): + if '/fonts/' in self.path: fontStr = self.path.split('/fonts/')[1] if fontsStr.endswith('.otf') or \ fontsStr.endswith('.ttf') or \