setLen now used on asyncdispatch.recv's return value on Linux.
This fixes issues with the async httpclient.
This commit is contained in:
parent
d98b0d9f79
commit
d2593e1d62
2 changed files with 2 additions and 7 deletions
|
|
@ -546,9 +546,6 @@ proc parseResponse(client: PAsyncHttpClient,
|
|||
# Parse HTTP version info and status code.
|
||||
var le = skipIgnoreCase(line, "HTTP/", linei)
|
||||
if le <= 0:
|
||||
while true:
|
||||
let nl = await client.socket.recvLine()
|
||||
echo("Got another line: ", nl)
|
||||
httpError("invalid http version, " & line.repr)
|
||||
inc(linei, le)
|
||||
le = skipIgnoreCase(line, "1.1", linei)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue