Skip to content
This repository has been archived by the owner on Apr 8, 2019. It is now read-only.

Commit

Permalink
fix: bad server uri for https (#111)
Browse files Browse the repository at this point in the history
  • Loading branch information
shellscape authored and joshwiens committed May 1, 2018
1 parent f6c7fb1 commit b5c7266
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,14 +119,16 @@ module.exports = (opts) => {
return resolve(opts).then((configs) => {
const [first] = configs;
const options = merge({}, defaults, opts, flags, configs[0].serve);
// console.log('configs[0].serve', configs[0].serve);
// console.log(opts);
// console.log(options);
const https = pull(flags, 'https');
const open = pull(flags, 'open');

if (https) {
options.https = https;
}

// separate logical block so that protocol will be set correctly whether
// https is set via options in config or cli flag
if (options.https) {
options.protocol = 'https';
}

Expand Down

0 comments on commit b5c7266

Please sign in to comment.