This commit is contained in:
joeuhren
2020-11-21 20:27:50 -07:00
parent 2197d2c322
commit e1f4045f91
+2 -2
View File
@@ -51,8 +51,8 @@ Client.prototype.call = function(method, params, callback, errback, path) {
}
// use HTTP auth if user and password set
if (this.opts.user && this.opts.pass) {
requestOptions.auth = this.opts.user + ':' + this.opts.pass;
if (this.opts.username && this.opts.password) {
requestOptions.auth = this.opts.username + ':' + this.opts.password;
}
// Now we'll make a request to the server