Various bugfixes

This commit is contained in:
Thomas Sileo 2022-07-05 08:14:50 +02:00
parent 9012356a19
commit e6066cb212
5 changed files with 25 additions and 14 deletions

View file

@ -739,7 +739,7 @@ async def nodeinfo(
)
proxy_client = httpx.AsyncClient()
proxy_client = httpx.AsyncClient(follow_redirects=True)
@app.get("/proxy/media/{encoded_url}")
@ -820,6 +820,7 @@ async def serve_proxy_media_resized(
]
]
+ [(b"user-agent", USER_AGENT.encode())],
follow_redirects=True,
)
if proxy_resp.status_code != 200:
return PlainTextResponse(