Catch connection closed errors
This commit is contained in:
parent
9c8c2cbe88
commit
40ef23956a
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ proc proxyMedia*(req: jester.Request; url: string): Future[HttpCode] {.async.} =
|
|||
if hasValue:
|
||||
await request.client.send(data)
|
||||
data.setLen 0
|
||||
except HttpRequestError, OSError:
|
||||
except HttpRequestError, ProtocolError, OSError:
|
||||
result = Http404
|
||||
finally:
|
||||
client.safeClose()
|
||||
|
|
Loading…
Reference in a new issue