{"action":"created","issue":{"url":"https://api.github.com/repos/mzabriskie/axios/issues/169","labels_url":"https://api.github.com/repos/mzabriskie/axios/issues/169/labels{/name}","comments_url":"https://api.github.com/repos/mzabriskie/axios/issues/169/comments","events_url":"https://api.github.com/repos/mzabriskie/axios/issues/169/events","html_url":"https://github.com/mzabriskie/axios/issues/169","id":122009688,"number":169,"title":"Basic auth via Authorization header extra colon","user":{"login":"ersab","id":16287338,"avatar_url":"https://avatars.githubusercontent.com/u/16287338?v=3","gravatar_id":"","url":"https://api.github.com/users/ersab","html_url":"https://github.com/ersab","followers_url":"https://api.github.com/users/ersab/followers","following_url":"https://api.github.com/users/ersab/following{/other_user}","gists_url":"https://api.github.com/users/ersab/gists{/gist_id}","starred_url":"https://api.github.com/users/ersab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ersab/subscriptions","organizations_url":"https://api.github.com/users/ersab/orgs","repos_url":"https://api.github.com/users/ersab/repos","events_url":"https://api.github.com/users/ersab/events{/privacy}","received_events_url":"https://api.github.com/users/ersab/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mzabriskie/axios/labels/browser","name":"browser","color":"22B3C5"},{"url":"https://api.github.com/repos/mzabriskie/axios/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/mzabriskie/axios/labels/first-timers-only","name":"first-timers-only","color":"5319e7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-14T10:00:40Z","updated_at":"2015-12-14T19:35:36Z","closed_at":null,"body":"Current implementation adds extra colon after word \"Basic\" which is invalid\r\n(https://en.wikipedia.org/wiki/Basic_access_authentication)\r\n\t  // HTTP basic authentication\r\n\t  if (config.auth) {\r\n\t    var username = config.auth.username || '';\r\n\t    var password = config.auth.password || '';\r\n\t    requestHeaders['Authorization'] = 'Basic: ' + btoa(username + ':' + password);\r\n\t  }\r\n"},"comment":{"url":"https://api.github.com/repos/mzabriskie/axios/issues/comments/164536628","html_url":"https://github.com/mzabriskie/axios/issues/169#issuecomment-164536628","issue_url":"https://api.github.com/repos/mzabriskie/axios/issues/169","id":164536628,"user":{"login":"mzabriskie","id":199035,"avatar_url":"https://avatars.githubusercontent.com/u/199035?v=3","gravatar_id":"","url":"https://api.github.com/users/mzabriskie","html_url":"https://github.com/mzabriskie","followers_url":"https://api.github.com/users/mzabriskie/followers","following_url":"https://api.github.com/users/mzabriskie/following{/other_user}","gists_url":"https://api.github.com/users/mzabriskie/gists{/gist_id}","starred_url":"https://api.github.com/users/mzabriskie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mzabriskie/subscriptions","organizations_url":"https://api.github.com/users/mzabriskie/orgs","repos_url":"https://api.github.com/users/mzabriskie/repos","events_url":"https://api.github.com/users/mzabriskie/events{/privacy}","received_events_url":"https://api.github.com/users/mzabriskie/received_events","type":"User","site_admin":false},"created_at":"2015-12-14T19:35:36Z","updated_at":"2015-12-14T19:35:36Z","body":"Yes that is correct. If you look at `test/specs/__setupBasicAuthTest.js` you will find a test commented out on line 24. We need to make this test pass.\r\n\r\n1. Fork repo\r\n1. `$ npm install`\r\n1. Uncomment that test\r\n1. `$ npm test` (will fail)\r\n1. Fix code\r\n1. Run tests again (should pass)"}}