fix: serves modified index.html (X-Forwarded-Proto) when X-Forwarded-Prefix is not set

When X-Forwarded-Prefix was not set, the X-Forwarded-Proto was also not
updated on the index.html file.
This commit is contained in:
Mose Müller 2025-01-20 13:54:16 +01:00
parent 9bf3b28390
commit 3479c511fe

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()