From b7f66db9452e70010f41667106cb0b1d56cd5878 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 25 May 2020 12:53:47 +0100 Subject: [PATCH] Fix variable name --- daemon.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/daemon.py b/daemon.py index 720264503..644bf62e0 100644 --- a/daemon.py +++ b/daemon.py @@ -1741,15 +1741,15 @@ class PubServer(BaseHTTPRequestHandler): # get fonts if '/fonts/' in self.path: fontStr = self.path.split('/fonts/')[1] - if fontsStr.endswith('.otf') or \ - fontsStr.endswith('.ttf') or \ - fontsStr.endswith('.woff') or \ - fontsStr.endswith('.woff2'): - if fontsStr.endswith('.otf'): + if fontStr.endswith('.otf') or \ + fontStr.endswith('.ttf') or \ + fontStr.endswith('.woff') or \ + fontStr.endswith('.woff2'): + if fontStr.endswith('.otf'): fontType = 'application/x-font-opentype' - elif fontsStr.endswith('.ttf'): + elif fontStr.endswith('.ttf'): fontType = 'application/x-font-truetype' - elif fontsStr.endswith('.woff'): + elif fontStr.endswith('.woff'): fontType = 'application/font-woff' else: fontType = 'application/font-woff2'