mirror of
https://github.com/nodejs/node.git
synced 2026-11-25 23:01:06 -05:00
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: https://github.com/nodejs/node/issues/4712 PR-URL: https://github.com/nodejs/node/pull/4714 Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
1 parent
0d0a5ed816
commit
dcaf6fd80b
1 file changed
+1
-1
@@ -992,7 +992,7 @@ automatically parsed with [`url.parse()`][].
|
||||
|
||||
Options:
|
||||
|
||||
- `protocol`: Protocol to use. Defaults to `'http'`.
|
||||
- `protocol`: Protocol to use. Defaults to `'http:'`.
|
||||
- `host`: A domain name or IP address of the server to issue the request to.
|
||||
Defaults to `'localhost'`.
|
||||
- `hostname`: Alias for `host`. To support [`url.parse()`][] `hostname` is
|
||||
|
||||
Reference in new issue
Block a user