mirror of
https://github.com/tiqi-group/pydase.git
synced 2025-04-21 00:40:01 +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",
|
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()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user