Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion chronos.nimble
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
mode = ScriptMode.Verbose

packageName = "chronos"
version = "4.2.2"
version = "4.2.3"
author = "Status Research & Development GmbH"
description = "Networking framework with async/await support"
license = "MIT or Apache License 2.0"
Expand Down
5 changes: 2 additions & 3 deletions chronos/apps/http/httpclient.nim
Original file line number Diff line number Diff line change
Expand Up @@ -931,16 +931,15 @@ proc prepareResponse(
# Preprocessing "Connection" header.
let connectionFlag =
block:
case resp.version
of HttpVersion11:
if resp.version == HttpVersion11:
# Keeping a connection open is the default on HTTP/1.1 requests.
# https://www.rfc-editor.org/rfc/rfc2068.html#section-19.7.1
let header = toLowerAscii(headers.getString(ConnectionHeader))
if header == "close":
false
else:
true
of HttpVersion10:
elif resp.version == HttpVersion10:
# This is the default on HTTP/1.0 requests.
false
else:
Expand Down
Loading