mirror of
https://github.com/tiqi-group/pydase.git
synced 2025-04-21 00:40:01 +02:00
fix: default X-Forwarded-Proto to "http"
This commit is contained in:
parent
bdf97fa181
commit
0100bab04f
@ -104,7 +104,7 @@ class WebServer:
|
||||
async def index(
|
||||
request: aiohttp.web.Request,
|
||||
) -> aiohttp.web.Response | aiohttp.web.FileResponse:
|
||||
forwarded_proto = request.headers["X-Forwarded-Proto"]
|
||||
forwarded_proto = request.headers.get("X-Forwarded-Proto", "http")
|
||||
escaped_proto = html.escape(forwarded_proto)
|
||||
|
||||
# Read the index.html file
|
||||
|
Loading…
x
Reference in New Issue
Block a user