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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user