Detecting fonts

main
Bob Mottram 2020-05-25 12:52:10 +01:00
parent a6b395c068
commit e6fb9842dd
1 changed files with 1 additions and 1 deletions

View File

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