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}`); } } ```