mirror of
https://github.com/tenrok/axios.git
synced 2026-06-17 19:21:29 +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) {
|
if (config.auth) {
|
||||||
var username = config.auth.username || '';
|
var username = config.auth.username || '';
|
||||||
var password = config.auth.password || '';
|
var password = config.auth.password || '';
|
||||||
requestHeaders['Authorization'] = 'Basic: ' + btoa(username + ':' + password);
|
requestHeaders['Authorization'] = 'Basic ' + btoa(username + ':' + password);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Create the request
|
// Create the request
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ module.exports = function setupBasicAuthTest() {
|
|||||||
var request = jasmine.Ajax.requests.mostRecent();
|
var request = jasmine.Ajax.requests.mostRecent();
|
||||||
|
|
||||||
// TODO uncomment this once #169 is resolved
|
// TODO uncomment this once #169 is resolved
|
||||||
// expect(request.requestHeaders['Authorization']).toEqual('Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==');
|
expect(request.requestHeaders['Authorization']).toEqual('Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==');
|
||||||
done();
|
done();
|
||||||
}, 0);
|
}, 0);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user