Skip to content

Commit 0608873

Browse files
NMVikingsMylesBorins
authored andcommitted
doc: fix example of parsing request.url
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]>
1 parent a31eed0 commit 0608873

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/http.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1990,7 +1990,7 @@ When `request.url` is `'/status?name=ryan'` and
19901990

19911991
```console
19921992
$ node
1993-
> new URL(request.url, request.headers.host)
1993+
> new URL(request.url, `http://${request.headers.host}`)
19941994
URL {
19951995
href: 'http://localhost:3000/status?name=ryan',
19961996
origin: 'http://localhost:3000',

0 commit comments

Comments
 (0)