Skip to content

Commit

Permalink
v1.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
bung87 committed Apr 12, 2024
1 parent 2e4a161 commit c4a7fe9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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.1"
version = "1.2.2"
author = "bung87"
description = "micro and elegant web framework"
license = "Apache License 2.0"
Expand Down
6 changes: 3 additions & 3 deletions src/scorper/http/streamserver.nim
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ proc resp*(req: ImpRequest, content: sink string,
await resp(req, content, headers.newHttpHeaders())

proc respError*(req: ImpRequest, code: HttpCode, content: sink string, headers = newHttpHeaders()): Future[
void] {.async:(raises:[]).} =
void] {.async.} =
## Responds to the req with the specified ``HttpCode``.
if req.responded == true:
return
Expand All @@ -212,10 +212,10 @@ proc respError*(req: ImpRequest, code: HttpCode, content: sink string, headers =
req.responded = true

proc respError*(req: ImpRequest, code: HttpCode, content: sink string,
headers: seq[(string, string)]): Future[void] {.inline, async: (raises:[]).} =
headers: seq[(string, string)]): Future[void] {.inline, async.} =
await respError(req, code, content, headers.newHttpHeaders())

proc respError*(req: ImpRequest, code: HttpCode, headers = newHttpHeaders()): Future[void] {.async:(raises: []).} =
proc respError*(req: ImpRequest, code: HttpCode, headers = newHttpHeaders()): Future[void] {.async.} =
## Responds to the req with the specified ``HttpCode``.
if req.responded == true:
return
Expand Down

0 comments on commit c4a7fe9

Please sign in to comment.