Skip to content

Commit

Permalink
Merge pull request #13 from yglukhov/fix-nim-9867
Browse files Browse the repository at this point in the history
Workaround nim nim-lang/Nim#9867
  • Loading branch information
yglukhov authored Jul 21, 2020
2 parents 1b8f2bb + acdd7fc commit 875c520
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion async_http_request.nim
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ elif not defined(js):

client.headers = newHttpHeaders(headers)
client.headers["Content-Length"] = $body.len
client.headers["Connection"] = "close"
# client.headers["Connection"] = "close" # This triggers nim bug #9867
let resp = client.request(url, httpMethod, body)
client.close()
handler((parseStatusCode(resp.status), resp.status, resp.body), ctx)
Expand Down

0 comments on commit 875c520

Please sign in to comment.