2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-11 18:02:32 +03:00

Removing unwanted user/pass for auth

This commit is contained in:
Matt Zabriskie
2015-12-11 11:39:22 -07:00
parent d81db4ab2b
commit 07b177f347
+2 -2
View File
@@ -49,8 +49,8 @@ module.exports = function httpAdapter(resolve, reject, config) {
// HTTP basic authentication
var auth = undefined;
if (config.auth) {
var username = config.auth.user || config.auth.username;
var password = config.auth.pass || config.auth.password;
var username = config.auth.username || '';
var password = config.auth.password || '';
auth = username + ':' + password;
}