Skip to content

Commit 212a44d

Browse 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 <[email protected]>
1 parent 3297036 commit 212a44d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/http.markdown

+1-1
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)