mirror of
https://github.com/tiqi-group/pydase.git
synced 2025-04-20 00:10:03 +02:00
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:
commit
5d72604199
@ -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()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user