Silence 404 proxy errors

This commit is contained in:
Zed 2025-02-05 03:20:05 +01:00
parent c0f2eea276
commit 5edaea2359

View file

@ -37,6 +37,7 @@ proc proxyMedia*(req: jester.Request; url: string): Future[HttpCode] {.async.} =
try:
let res = await client.get(url)
if res.status != "200 OK":
if res.status != "404 Not Found":
echo "[media] Proxying failed, status: $1, url: $2" % [res.status, url]
return Http404