Skip to content

Commit

Permalink
0.6.4
Browse files Browse the repository at this point in the history
  • Loading branch information
ringabout committed Nov 25, 2022
1 parent 112df3c commit 9dc334a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.6.4

Better deps management.

## 0.6.2

Added gcsafe pragmas to extend method.
Expand Down
6 changes: 3 additions & 3 deletions prologue.nimble
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Package

version = "0.6.2"
author = "flywind"
version = "0.6.4"
author = "ringabout"
description = "Prologue is an elegant and high performance web framework"
license = "Apache-2.0"
srcDir = "src"
Expand All @@ -12,7 +12,7 @@ requires "nim >= 1.6.0"
requires "regex >= 0.20.0"
requires "nimcrypto >= 0.5.4"
requires "cookiejar >= 0.2.0"
requires "httpx >= 0.2.0"
requires "httpx >= 0.3.4"
requires "logue >= 0.2.0"


Expand Down
2 changes: 1 addition & 1 deletion src/prologue/core/beast/request.nim
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ proc respond*(request: Request, code: HttpCode, body: string,
## Responds `code`, `body` and `headers` to the client, the framework
## will generate the contents of the response automatically.
if headers.hasKey("Content-Length"):
request.nativeRequest.send(code, body, some(headers["Content-Length", 0]), headers.createHeaders)
request.nativeRequest.send(code, body, some(parseInt(headers["Content-Length", 0])), headers.createHeaders)
else:
request.nativeRequest.send(code, body, headers.createHeaders)
result = newFuture[void]()
Expand Down
2 changes: 1 addition & 1 deletion src/prologue/core/constants.nim
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const
PrologueVersion* = "0.6.2" ## The current version of Prologue.
PrologueVersion* = "0.6.4" ## The current version of Prologue.
ProloguePrefix* = "PROLOGUE" ## The helper prefix for environment variables.
useAsyncHTTPServer* = defined(windows) or defined(usestd) ## Uses `asynchttpserver`.

0 comments on commit 9dc334a

Please sign in to comment.