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 212a44d

Browse filesBrowse files
committed
doc: clarify protocol default in http.request()
The previously listed default of 'http' is incorrect, and causes an error to be thrown. This commit changes it to the correct value of 'http:' Fixes: #4712 PR-URL: #4714 Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 3297036 commit 212a44d
Copy full SHA for 212a44d

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.markdown‎

Copy file name to clipboardExpand all lines: doc/api/http.markdown
+1-1Lines changed: 1 addition & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -1008,7 +1008,7 @@ automatically parsed with [`url.parse()`][].
10081008

10091009
Options:
10101010

1011-
- `protocol`: Protocol to use. Defaults to `'http'`.
1011+
- `protocol`: Protocol to use. Defaults to `'http:'`.
10121012
- `host`: A domain name or IP address of the server to issue the request to.
10131013
Defaults to `'localhost'`.
10141014
- `hostname`: Alias for `host`. To support [`url.parse()`][] `hostname` is

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.