Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 0608873

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

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Collapse file

‎doc/api/http.md‎

Copy file name to clipboardExpand all lines: doc/api/http.md
+1-1Lines changed: 1 addition & 1 deletion
  • Display the source diff
  • Display the rich diff
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.