From 8a0b9451705788fe7e4f09ad84450ac435e0cba0 Mon Sep 17 00:00:00 2001 From: Araq Date: Mon, 24 Oct 2016 20:28:27 +0200 Subject: asynchttpserver: cleanup example code --- lib/pure/asynchttpserver.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pure/asynchttpserver.nim b/lib/pure/asynchttpserver.nim index bb85787a4..4c7037a4e 100644 --- a/lib/pure/asynchttpserver.nim +++ b/lib/pure/asynchttpserver.nim @@ -86,7 +86,7 @@ proc respond*(req: Request, code: HttpCode, content: string, ## -------- ## .. code-block::nim ## proc handler(req: Request) {.async.} = - ## if $req.url.path == "/hello-world": + ## if req.url.path == "/hello-world": ## let msg = %* {"message": "Hello World"} ## let headers = newHttpHeaders([("Content-Type","application/json")]) ## await req.respond(Http200, $msg, headers) -- cgit 1.4.1-2-gfad0