Merge pull request #206 from tiqi-group/fix/serving_modified_html

fix: serves modified index.html (X-Forwarded-Proto) when X-Forwarded-Prefix is not set
This commit is contained in:
Mose Müller 2025-01-20 13:56:42 +01:00 committed by GitHub
commit 5d72604199
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -150,10 +150,7 @@ class WebServer:
f"{escaped_prefix}/favicon.ico",
)
return aiohttp.web.Response(
text=modified_html, content_type="text/html"
)
return aiohttp.web.FileResponse(self.frontend_src / "index.html")
return aiohttp.web.Response(text=modified_html, content_type="text/html")
app = aiohttp.web.Application()