Skip to content

Commit

Permalink
fix issue with jinjafx.html
Browse files Browse the repository at this point in the history
  • Loading branch information
cmason3 committed Sep 9, 2022
1 parent df24faf commit 7d60c6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jinjafx_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ def do_GET(self, head=False, cache=True, versioned=False):
else:
r = [ 'text/plain', 401, '401 Unauthorized\r\n'.encode('utf-8'), sys._getframe().f_lineno ]

elif re.search(r'^/[A-Z0-9_-]+\.[A-Z0-9]+$', fpath, re.IGNORECASE) and os.path.isfile(base + '/www' + fpath):
elif re.search(r'^/[A-Z0-9_-]+\.[A-Z0-9]+$', fpath, re.IGNORECASE) and (os.path.isfile(base + '/www' + fpath) or fpath == '/jinjafx.html'):
if fpath.endswith('.js'):
ctype = 'text/javascript'
elif fpath.endswith('.css'):
Expand Down

0 comments on commit 7d60c6b

Please sign in to comment.