From 8f46c7fe4ffe8635c9537242d409d05add655b6b Mon Sep 17 00:00:00 2001 From: Lucas Dohmen Date: Fri, 30 Jul 2021 10:38:21 +0200 Subject: [PATCH] fix: fix the handle function example (#30) --- runtime/http_server_apis.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/http_server_apis.md b/runtime/http_server_apis.md index 0d20c49e..41d709f4 100644 --- a/runtime/http_server_apis.md +++ b/runtime/http_server_apis.md @@ -191,7 +191,7 @@ async function handle(conn: Deno.Conn) { const httpConn = Deno.serveHttp(conn); for await (const requestEvent of httpConn) { const url = new URL(requestEvent.request.url); - console.log(`path: ${url.path}`); + console.log(`path: ${url.pathname}`); } } ```