Skip to content

Commit

Permalink
doc: clarify protocol default in http.request()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
cjihrig authored and Myles Borins committed Jan 19, 2016
1 parent 46d8c93 commit 8c2b65a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api/http.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8c2b65a

Please sign in to comment.