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 8c2b65a

Browse filesBrowse files
cjihrigMyles Borins
authored andcommitted
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 46d8c93 commit 8c2b65a
Copy full SHA for 8c2b65a

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
@@ -992,7 +992,7 @@ automatically parsed with [`url.parse()`][].
992992

993993
Options:
994994

995-
- `protocol`: Protocol to use. Defaults to `'http'`.
995+
- `protocol`: Protocol to use. Defaults to `'http:'`.
996996
- `host`: A domain name or IP address of the server to issue the request to.
997997
Defaults to `'localhost'`.
998998
- `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.