Skip to content

Commit

Permalink
v1.2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
bung87 committed Apr 12, 2024
1 parent c4a7fe9 commit 5756d2f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scorper.nimble
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Package

version = "1.2.2"
version = "1.2.3"
author = "bung87"
description = "micro and elegant web framework"
license = "Apache License 2.0"
Expand Down
2 changes: 1 addition & 1 deletion src/scorper/http/streamserver.nim
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,7 @@ proc postCheck(req: ImpRequest): Future[int]{.async, inline.} =
if req.meth in MethodNeedsBody and req.parsed == false:
result = await req.reader.consume(req.contentLength.int)

proc defaultErrorHandle(req: ImpRequest, err: ref Exception | HttpError; headers = newHttpHeaders()){.async: (raises: []), gcsafe.} =
proc defaultErrorHandle(req: ImpRequest, err: ref Exception | HttpError; headers = newHttpHeaders()){.async, gcsafe.} =
if req.responded:
return
let code = when err is HttpError: err.code.HttpCode else: Http500 #
Expand Down

0 comments on commit 5756d2f

Please sign in to comment.