From d52a3cb73dc8506a08be97f02e55aad2d472d0f3 Mon Sep 17 00:00:00 2001 From: mvalenko Date: Fri, 16 Jun 2017 15:25:16 +0300 Subject: [PATCH] .auth doesn't work together with .attach #80 fix --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 76fb118..ead6f3e 100755 --- a/index.js +++ b/index.js @@ -170,7 +170,7 @@ var Unirest = function (method, uri, headers, body, callback) { auth: function (user, password, sendImmediately) { $this.options.auth = (is(user).a(Object)) ? user : { user: user, - password: password, + pass: password, sendImmediately: sendImmediately }