Skip to content

Commit

Permalink
http as default protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
christian-bromann committed Nov 30, 2018
1 parent d25278b commit 9f575ad
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/utils/RequestHandler.js
Expand Up @@ -70,6 +70,8 @@ class RequestHandler {
newOptions.qs = this.defaultOptions.queryParams
}

this.defaultOptions.protocol = this.defaultOptions.protocol || 'http'

newOptions.uri = url.parse(
this.defaultOptions.protocol + '://' +
formatHostname(this.defaultOptions.hostname) + ':' + this.defaultOptions.port +
Expand Down

0 comments on commit 9f575ad

Please sign in to comment.