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
This commit is contained in:
Justin Early 2015-01-19 13:18:27 -08:00
parent 485a6733f9
commit 079248f47d

View file

@ -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,