diff --git a/lib/proxy.js b/lib/proxy.js index b0b3b86..a260dfa 100644 --- a/lib/proxy.js +++ b/lib/proxy.js @@ -48,11 +48,7 @@ Proxy.prototype.invoke = function(method, args, callback) { }; if (this.username) { - options.auth = { - user: this.username, - pass: this.password, - sendImmediately: true - }; + options.auth = this.username + ':' + this.password; } var req = require(this.protocol).request(options, function(res) { @@ -87,4 +83,4 @@ Proxy.prototype.invoke = function(method, args, callback) { }; -module.exports = Proxy; \ No newline at end of file +module.exports = Proxy;