mirror of
https://github.com/tenrok/axios.git
synced 2026-06-23 20:40:40 +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
|
// HTTP basic authentication
|
||||||
var auth = undefined;
|
var auth = undefined;
|
||||||
if (config.auth) {
|
if (config.auth) {
|
||||||
var username = config.auth.user || config.auth.username;
|
var username = config.auth.username || '';
|
||||||
var password = config.auth.pass || config.auth.password;
|
var password = config.auth.password || '';
|
||||||
auth = username + ':' + password;
|
auth = username + ':' + password;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user