updating condition

Forgot to bring condition along
This commit is contained in:
Justin Early 2015-01-19 13:39:44 -08:00
parent 079248f47d
commit 39e5f1210a

View file

@ -22,7 +22,7 @@
}
// assign request handler based on protocol
var reqHandler = (oURL.protocol.indexOf('https:') ) ? HTTPS : HTTP,
var reqHandler = (oURL.protocol.indexOf('https:') === 0 ) ? HTTPS : HTTP,
req = reqHandler.request({
hostname: oURL.hostname,
port: oURL.port,