mirror of
https://github.com/tenrok/axios.git
synced 2026-06-14 18:42:33 +03:00
Dropping support for auth.user/pass
Only accept `username` and `password` as arguments
This commit is contained in:
+2
-2
@@ -41,9 +41,9 @@ module.exports = function xhrAdapter(resolve, reject, config) {
|
||||
|
||||
// HTTP basic authentication
|
||||
if (config.auth) {
|
||||
var username = config.auth.user || config.auth.username || '';
|
||||
var password = config.auth.pass || config.auth.password || '';
|
||||
requestHeaders['Authorization'] = 'Basic: ' + window.btoa(username + ':' + password);
|
||||
var username = config.auth.username || '';
|
||||
var password = config.auth.password || '';
|
||||
}
|
||||
|
||||
// Create the request
|
||||
|
||||
Reference in New Issue
Block a user