diff options
author | Varriount <Varriount@users.noreply.github.com> | 2017-06-13 04:17:21 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-13 04:17:21 -0400 |
commit | 32ced5d9e2cf374df545c1cbfd0bd000750371ad (patch) | |
tree | b6fa343652054cfb8feb4a9d40e8391771d3e724 /lib/pure | |
parent | 963679389c6866672b939fcd0bd4c631be81fca7 (diff) | |
parent | 622b4a7b47c4a9b0bc7c670fddd37f628c5226af (diff) | |
download | Nim-32ced5d9e2cf374df545c1cbfd0bd000750371ad.tar.gz |
Merge pull request #5941 from tulayang/devel
Fix bad tail for status response
Diffstat (limited to 'lib/pure')
-rw-r--r-- | lib/pure/asynchttpserver.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/asynchttpserver.nim b/lib/pure/asynchttpserver.nim index 8d059dbbc..a374e80e8 100644 --- a/lib/pure/asynchttpserver.nim +++ b/lib/pure/asynchttpserver.nim @@ -127,7 +127,7 @@ proc parseProtocol(protocol: string): tuple[orig: string, major, minor: int] = i.inc protocol.parseInt(result.minor, i) proc sendStatus(client: AsyncSocket, status: string): Future[void] = - client.send("HTTP/1.1 " & status & "\c\L") + client.send("HTTP/1.1 " & status & "\c\L\c\L") proc processClient(client: AsyncSocket, address: string, callback: proc (request: Request): |