From 3ea0c8ef6d2be9566da7efc9220a021b3a0be675 Mon Sep 17 00:00:00 2001 From: Michael Schock Date: Tue, 20 Feb 2018 16:03:03 -0800 Subject: [PATCH] STRF-4472 - Allow forward slash in store url --- lib/stencil-push.utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/stencil-push.utils.js b/lib/stencil-push.utils.js index 5ca62fa8..79141ea9 100644 --- a/lib/stencil-push.utils.js +++ b/lib/stencil-push.utils.js @@ -52,7 +52,7 @@ utils.readStencilConfigFile = (options, callback) => { utils.getStoreHash = (options, callback) => { options = validateOptions(options, ['config.normalStoreUrl']); - Wreck.get(`${options.config.normalStoreUrl}/admin/oauth/info`, { json: true, rejectUnauthorized: false }, (error, response, payload) => { + Wreck.get(`https://${options.config.normalStoreUrl.replace(/http(s?):\/\//, '').split('/')[0]}/admin/oauth/info`, { json: true, rejectUnauthorized: false }, (error, response, payload) => { if (error) { error.name = 'StoreHashReadError'; return callback(error);