Skip to content

Commit

Permalink
doc: fix example of parsing request.url
Browse files Browse the repository at this point in the history
PR-URL: #31302
Fixes: #31301
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
  • Loading branch information
NMVikings authored and MylesBorins committed Jan 16, 2020
1 parent a31eed0 commit 0608873
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api/http.md
Original file line number Diff line number Diff line change
Expand Up @@ -1990,7 +1990,7 @@ When `request.url` is `'/status?name=ryan'` and

```console
$ node
> new URL(request.url, request.headers.host)
> new URL(request.url, `http://${request.headers.host}`)
URL {
href: 'http://localhost:3000/status?name=ryan',
origin: 'http://localhost:3000',
Expand Down

0 comments on commit 0608873

Please sign in to comment.