Skip to content

Commit

Permalink
Merge pull request #369 from mjschock/STRF-4472
Browse files Browse the repository at this point in the history
STRF-4472 - Allow forward slash in store url
  • Loading branch information
mjschock authored Feb 21, 2018
2 parents 25c62fe + 3ea0c8e commit bad8ac0
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 bad8ac0

Please sign in to comment.