Skip to content

Commit

Permalink
fix: fix the handle function example (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
moonglum committed Jul 30, 2021
1 parent 972fc27 commit 8f46c7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/http_server_apis.md
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
}
}
```
Expand Down

0 comments on commit 8f46c7f

Please sign in to comment.