Skip to content

Commit

Permalink
Workaround nim nim-lang/Nim#9867
Browse files Browse the repository at this point in the history
  • Loading branch information
yglukhov committed Jul 21, 2020
1 parent 1b8f2bb commit acdd7fc
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 acdd7fc

Please sign in to comment.