From 61877b22c0b5f320f2faac826ad1db6e5e9c7344 Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Sat, 30 Jul 2022 09:09:18 +0200 Subject: [PATCH] Tweak media proxy --- app/main.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/app/main.py b/app/main.py index 76928bf..9212af0 100644 --- a/app/main.py +++ b/app/main.py @@ -875,7 +875,14 @@ async def _proxy_get( (k, v) for (k, v) in request.headers.raw if k.lower() - not in [b"host", b"cookie", b"x-forwarded-for", b"x-real-ip", b"user-agent"] + not in [ + b"host", + b"cookie", + b"x-forwarded-for", + b"x-forwarded-proto", + b"x-real-ip", + b"user-agent", + ] ] + [(b"user-agent", USER_AGENT.encode())], )