Skip to content

Commit 7e1564d

Browse files
cjihrigjasnell
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 <[email protected]>
1 parent bb2e2d0 commit 7e1564d

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
@@ -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)