From 92a977d6d9627ce62e9d5079f26441395a7d20ca Mon Sep 17 00:00:00 2001 From: Chris Kleeschulte Date: Wed, 7 Oct 2015 17:52:26 -0400 Subject: [PATCH] HTTP support of insight - Added a check for https support. --- bitcorenode/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitcorenode/index.js b/bitcorenode/index.js index ee7c85d..a9b0059 100644 --- a/bitcorenode/index.js +++ b/bitcorenode/index.js @@ -81,7 +81,7 @@ Service.prototype._getConfiguration = function() { var providerOptions = { provider: 'insight', - url: 'http://localhost:' + self.node.port, + url: (self.node.https ? 'https://' : 'http://') + 'localhost:' + self.node.port, apiPrefix: '/insight-api' };