From 8c2b65ad82f8ac389b8ce9f7c0fb20febd219fd8 Mon Sep 17 00:00:00 2001 From: cjihrig Date: Fri, 15 Jan 2016 11:45:49 -0500 Subject: [PATCH] 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 --- doc/api/http.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/http.markdown b/doc/api/http.markdown index 3904dd29d4d485..56d3595ed12ca3 100644 --- a/doc/api/http.markdown +++ b/doc/api/http.markdown @@ -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