{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/vsts-device-flow-auth/issues/2","repository_url":"https://api.github.com/repos/Microsoft/vsts-device-flow-auth","labels_url":"https://api.github.com/repos/Microsoft/vsts-device-flow-auth/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vsts-device-flow-auth/issues/2/comments","events_url":"https://api.github.com/repos/Microsoft/vsts-device-flow-auth/issues/2/events","html_url":"https://github.com/Microsoft/vsts-device-flow-auth/pull/2","id":325379384,"number":2,"title":"Ignore status code when making head request to visualstudio.com","user":{"login":"chrisrpatterson","id":185122,"avatar_url":"https://avatars2.githubusercontent.com/u/185122?v=4","gravatar_id":"","url":"https://api.github.com/users/chrisrpatterson","html_url":"https://github.com/chrisrpatterson","followers_url":"https://api.github.com/users/chrisrpatterson/followers","following_url":"https://api.github.com/users/chrisrpatterson/following{/other_user}","gists_url":"https://api.github.com/users/chrisrpatterson/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisrpatterson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisrpatterson/subscriptions","organizations_url":"https://api.github.com/users/chrisrpatterson/orgs","repos_url":"https://api.github.com/users/chrisrpatterson/repos","events_url":"https://api.github.com/users/chrisrpatterson/events{/privacy}","received_events_url":"https://api.github.com/users/chrisrpatterson/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-22T16:50:11Z","updated_at":"2018-05-22T18:52:01Z","closed_at":"2018-05-22T18:51:46Z","author_association":"MEMBER","pull_request":{"url":"https://api.github.com/repos/Microsoft/vsts-device-flow-auth/pulls/2","html_url":"https://github.com/Microsoft/vsts-device-flow-auth/pull/2","diff_url":"https://github.com/Microsoft/vsts-device-flow-auth/pull/2.diff","patch_url":"https://github.com/Microsoft/vsts-device-flow-auth/pull/2.patch"},"body":"Account level urls, https://<accountname>.visualstudio.com return a 404 when performing a HEAD request as there is no controller at that level to answer.  However, the HEAD request still returns the necessary headers expected by this module.  This change simply ignores the status code of the response and checks for the x-vss-resourcetenant header before throwing an error."},"comment":{"url":"https://api.github.com/repos/Microsoft/vsts-device-flow-auth/issues/comments/391101517","html_url":"https://github.com/Microsoft/vsts-device-flow-auth/pull/2#issuecomment-391101517","issue_url":"https://api.github.com/repos/Microsoft/vsts-device-flow-auth/issues/2","id":391101517,"user":{"login":"chrisrpatterson","id":185122,"avatar_url":"https://avatars2.githubusercontent.com/u/185122?v=4","gravatar_id":"","url":"https://api.github.com/users/chrisrpatterson","html_url":"https://github.com/chrisrpatterson","followers_url":"https://api.github.com/users/chrisrpatterson/followers","following_url":"https://api.github.com/users/chrisrpatterson/following{/other_user}","gists_url":"https://api.github.com/users/chrisrpatterson/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisrpatterson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisrpatterson/subscriptions","organizations_url":"https://api.github.com/users/chrisrpatterson/orgs","repos_url":"https://api.github.com/users/chrisrpatterson/repos","events_url":"https://api.github.com/users/chrisrpatterson/events{/privacy}","received_events_url":"https://api.github.com/users/chrisrpatterson/received_events","type":"User","site_admin":false},"created_at":"2018-05-22T18:52:01Z","updated_at":"2018-05-22T18:52:01Z","author_association":"MEMBER","body":"Updating with new changes"}}
{"actor":{"display_login":"chrisrpatterson"}}