Skip to content

Commit

Permalink
STRF-4472 - Allow forward slash in store url
Browse files Browse the repository at this point in the history
  • Loading branch information
mjschock committed Feb 21, 2018
1 parent 25c62fe commit 3ea0c8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/stencil-push.utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 3ea0c8e

Please sign in to comment.