Merge branch '2.2' into 2.3

This commit is contained in:
Markus Mäkelä 2019-02-08 10:23:47 +02:00
commit 946ffbb40d
No known key found for this signature in database
GPG Key ID: 72D48FCE664F7B19

View File

@ -316,7 +316,7 @@ module.exports = function() {
base = 'https://'
}
return base + argv.u + ':' + argv.p + '@' + host + '/v1/' + endpoint
return base + host + '/v1/' + endpoint
}
@ -358,6 +358,7 @@ module.exports = function() {
this.doAsyncRequest = function(host, resource, cb, obj) {
args = obj || {}
args.uri = getUri(host, this.argv.secure, resource)
args.auth = {user: argv.u, pass: argv.p}
args.json = true
args.timeout = this.argv.timeout
setTlsCerts(args)