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 <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Tiancheng "Timothy" Gu <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
  • 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.