2
0
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:
Julia Gao
2015-12-14 12:37:19 -07:00
parent 4d408837c1
commit fd2339cf5c
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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);
});