This commit is contained in:
Andreas Rumpf 2016-01-31 01:32:09 +01:00
commit ec1abdef97

View file

@ -829,7 +829,7 @@ proc readLine*(socket: Socket, line: var TaintedString, timeout = -1,
template addNLIfEmpty(): stmt = template addNLIfEmpty(): stmt =
if line.len == 0: if line.len == 0:
line.add("\c\L") line.string.add("\c\L")
template raiseSockError(): stmt {.dirty, immediate.} = template raiseSockError(): stmt {.dirty, immediate.} =
let lastError = getSocketError(socket) let lastError = getSocketError(socket)