mirror of https://gitlab.com/bashrc2/epicyon
Fix variable name
parent
e6fb9842dd
commit
b7f66db945
14
daemon.py
14
daemon.py
|
@ -1741,15 +1741,15 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
# get fonts
|
# get fonts
|
||||||
if '/fonts/' in self.path:
|
if '/fonts/' in self.path:
|
||||||
fontStr = self.path.split('/fonts/')[1]
|
fontStr = self.path.split('/fonts/')[1]
|
||||||
if fontsStr.endswith('.otf') or \
|
if fontStr.endswith('.otf') or \
|
||||||
fontsStr.endswith('.ttf') or \
|
fontStr.endswith('.ttf') or \
|
||||||
fontsStr.endswith('.woff') or \
|
fontStr.endswith('.woff') or \
|
||||||
fontsStr.endswith('.woff2'):
|
fontStr.endswith('.woff2'):
|
||||||
if fontsStr.endswith('.otf'):
|
if fontStr.endswith('.otf'):
|
||||||
fontType = 'application/x-font-opentype'
|
fontType = 'application/x-font-opentype'
|
||||||
elif fontsStr.endswith('.ttf'):
|
elif fontStr.endswith('.ttf'):
|
||||||
fontType = 'application/x-font-truetype'
|
fontType = 'application/x-font-truetype'
|
||||||
elif fontsStr.endswith('.woff'):
|
elif fontStr.endswith('.woff'):
|
||||||
fontType = 'application/font-woff'
|
fontType = 'application/font-woff'
|
||||||
else:
|
else:
|
||||||
fontType = 'application/font-woff2'
|
fontType = 'application/font-woff2'
|
||||||
|
|
Loading…
Reference in New Issue