From 7b7ccc2eef0b24bcfb97093365bdee87f3124f70 Mon Sep 17 00:00:00 2001 From: Josh Wulf Date: Wed, 11 Dec 2019 02:54:47 +1000 Subject: [PATCH] Correct protocol detection --- src/projections/projectionsClient.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/projections/projectionsClient.js b/src/projections/projectionsClient.js index c4045e4..35829cb 100644 --- a/src/projections/projectionsClient.js +++ b/src/projections/projectionsClient.js @@ -113,7 +113,7 @@ ProjectionsClient.prototype.delete = function(httpEndPoint, name, deleteEmittedS ProjectionsClient.prototype.request = function(method, _url, data, userCredentials, expectedCode) { const options = url.parse(_url); - const httplib = options.protocol === 'https' ? https : http; + const httplib = options.protocol === 'https:' ? https : http; options.method = method; if (userCredentials) { options.auth = [userCredentials.username, userCredentials.password].join(':');