Fix regression introduced by #416. (#419)

This commit is contained in:
Eugene Kabanov 2023-07-17 16:39:41 +03:00 committed by GitHub
parent 726fcb1915
commit d652c52142
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -736,8 +736,10 @@ proc sendDefaultResponse(conn: HttpConnectionRef, reqFence: RequestFence,
of HttpServerError.CatchableError:
await conn.sendErrorResponse(version, reqFence.error.code, false)
false
of HttpServerError.DisconnectError,
HttpServerError.InterruptError:
of HttpServerError.DisconnectError:
# When `HttpServerFlags.NotifyDisconnect` is set.
false
of HttpServerError.InterruptError:
raiseAssert("Unexpected request error: " & $reqFence.error.kind)
except CancelledError:
false