diff --git a/scorper.nimble b/scorper.nimble index 69ad703..94f7461 100644 --- a/scorper.nimble +++ b/scorper.nimble @@ -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" diff --git a/src/scorper/http/streamserver.nim b/src/scorper/http/streamserver.nim index b28380c..773c082 100644 --- a/src/scorper/http/streamserver.nim +++ b/src/scorper/http/streamserver.nim @@ -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 #