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