This commit is contained in:
shadowcz007
2023-12-27 17:48:49 +08:00
parent 4f24721450
commit 53fbb5b027
+1 -1
View File
@@ -275,7 +275,7 @@ async def mixlab_hander(request):
async def mixlab_app_handler(request):
html_file = os.path.join(current_path, "web/index.html")
if os.path.exists(html_file):
with open(html_file, 'r') as f:
with open(html_file, 'r', encoding='utf-8', errors='ignore') as f:
html_data = f.read()
return web.Response(text=html_data, content_type='text/html')
else: