From 7d60c6bff777ce892342763cac567c6dd71e0fcf Mon Sep 17 00:00:00 2001 From: Chris Mason Date: Fri, 9 Sep 2022 07:54:47 +0100 Subject: [PATCH] fix issue with jinjafx.html --- jinjafx_server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jinjafx_server.py b/jinjafx_server.py index 5318a29..e3f9198 100755 --- a/jinjafx_server.py +++ b/jinjafx_server.py @@ -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'):