diff options
-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 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) |