Tweak media proxy

This commit is contained in:
Thomas Sileo 2022-07-30 09:09:18 +02:00
parent b7423896d1
commit 61877b22c0

View file

@ -875,7 +875,14 @@ async def _proxy_get(
(k, v) (k, v)
for (k, v) in request.headers.raw for (k, v) in request.headers.raw
if k.lower() 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())], + [(b"user-agent", USER_AGENT.encode())],
) )