From 079248f47d71ca96356d6fac208da80ff37ec95f Mon Sep 17 00:00:00 2001 From: Justin Early Date: Mon, 19 Jan 2015 13:18:27 -0800 Subject: [PATCH] Support HTTPS with different ports not just 443 We would like to make this change to support HTTPS running on different ports other than 443 since user may have 443 used for something else on their machine. Thanks, Justin --- src/node.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node.js b/src/node.js index 9ea80b4b..6ba48a4f 100644 --- a/src/node.js +++ b/src/node.js @@ -22,7 +22,7 @@ } // assign request handler based on protocol - var reqHandler = ( oURL.port === 443 ) ? HTTPS : HTTP, + var reqHandler = (oURL.protocol.indexOf('https:') ) ? HTTPS : HTTP, req = reqHandler.request({ hostname: oURL.hostname, port: oURL.port,