mirror of https://gitlab.com/bashrc2/epicyon
debug
parent
d34b1ef700
commit
ceb264a340
|
@ -1321,6 +1321,7 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
# get fonts
|
# get fonts
|
||||||
if htmlGET and '/fonts/' in self.path:
|
if htmlGET and '/fonts/' in self.path:
|
||||||
fontStr = self.path.split('/fonts/')[1]
|
fontStr = self.path.split('/fonts/')[1]
|
||||||
|
print('fontStr: ' + fontStr)
|
||||||
if fontStr.endswith('.otf') or \
|
if fontStr.endswith('.otf') or \
|
||||||
fontStr.endswith('.ttf') or \
|
fontStr.endswith('.ttf') or \
|
||||||
fontStr.endswith('.woff') or \
|
fontStr.endswith('.woff') or \
|
||||||
|
@ -1349,8 +1350,8 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
return
|
return
|
||||||
else:
|
else:
|
||||||
if os.path.isfile(fontFilename):
|
if os.path.isfile(fontFilename):
|
||||||
with open(fontFilename, 'rb') as avFile:
|
with open(fontFilename, 'rb') as fontFile:
|
||||||
fontBinary = avFile.read()
|
fontBinary = fontFile.read()
|
||||||
self._set_headers_etag(fontFilename,
|
self._set_headers_etag(fontFilename,
|
||||||
fontType,
|
fontType,
|
||||||
fontBinary, cookie,
|
fontBinary, cookie,
|
||||||
|
|
Loading…
Reference in New Issue