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 <[email protected]>
  • Loading branch information
cjihrig committed Jan 15, 2016
1 parent 3297036 commit 212a44d
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 @@ -1008,7 +1008,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 212a44d

Please sign in to comment.