Tweak media proxy

main
Thomas Sileo 2022-07-30 09:09:18 +02:00
parent b7423896d1
commit 61877b22c0
1 changed files with 8 additions and 1 deletions

View File

@ -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())],
)