mirror of
https://github.com/tenrok/axios.git
synced 2026-06-08 17:22:34 +03:00
got rid of the colon after Basic, test passed
This commit is contained in:
+1
-1
@@ -44,7 +44,7 @@ module.exports = function xhrAdapter(resolve, reject, config) {
|
||||
if (config.auth) {
|
||||
var username = config.auth.username || '';
|
||||
var password = config.auth.password || '';
|
||||
requestHeaders['Authorization'] = 'Basic: ' + btoa(username + ':' + password);
|
||||
requestHeaders['Authorization'] = 'Basic ' + btoa(username + ':' + password);
|
||||
}
|
||||
|
||||
// Create the request
|
||||
|
||||
Reference in New Issue
Block a user