Fix static response

This commit is contained in:
Julien Kermes
2018-11-13 15:18:30 +01:00
parent aa4cd7a144
commit 1cc02e5a83
+1 -1
View File
@@ -433,7 +433,7 @@ class API:
def static_response(self, req, resp):
index = (self.static_dir / "index.html").resolve()
resp.content = ""
resp.content = None
if os.path.exists(index):
with open(index, "r") as f:
resp.text = f.read()