mirror of
https://github.com/tiqi-group/pydase.git
synced 2026-01-17 09:29:26 +01:00
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:
@@ -150,10 +150,7 @@ class WebServer:
|
|||||||
f"{escaped_prefix}/favicon.ico",
|
f"{escaped_prefix}/favicon.ico",
|
||||||
)
|
)
|
||||||
|
|
||||||
return aiohttp.web.Response(
|
return aiohttp.web.Response(text=modified_html, content_type="text/html")
|
||||||
text=modified_html, content_type="text/html"
|
|
||||||
)
|
|
||||||
return aiohttp.web.FileResponse(self.frontend_src / "index.html")
|
|
||||||
|
|
||||||
app = aiohttp.web.Application()
|
app = aiohttp.web.Application()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user