setLen now used on asyncdispatch.recv's return value on Linux.

This fixes issues with the async httpclient.
This commit is contained in:
Dominik Picheta 2014-04-06 22:06:25 +01:00
commit d2593e1d62
2 changed files with 2 additions and 7 deletions

View file

@ -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)