{"action":"created","issue":{"url":"https://api.github.com/repos/github/git-lfs/issues/1379","repository_url":"https://api.github.com/repos/github/git-lfs","labels_url":"https://api.github.com/repos/github/git-lfs/issues/1379/labels{/name}","comments_url":"https://api.github.com/repos/github/git-lfs/issues/1379/comments","events_url":"https://api.github.com/repos/github/git-lfs/issues/1379/events","html_url":"https://github.com/github/git-lfs/pull/1379","id":166011412,"number":1379,"title":"Updated request.GetAuthType to handle multi-value auth headers","user":{"login":"VladimirKhvostov","id":8412548,"avatar_url":"https://avatars.githubusercontent.com/u/8412548?v=3","gravatar_id":"","url":"https://api.github.com/users/VladimirKhvostov","html_url":"https://github.com/VladimirKhvostov","followers_url":"https://api.github.com/users/VladimirKhvostov/followers","following_url":"https://api.github.com/users/VladimirKhvostov/following{/other_user}","gists_url":"https://api.github.com/users/VladimirKhvostov/gists{/gist_id}","starred_url":"https://api.github.com/users/VladimirKhvostov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VladimirKhvostov/subscriptions","organizations_url":"https://api.github.com/users/VladimirKhvostov/orgs","repos_url":"https://api.github.com/users/VladimirKhvostov/repos","events_url":"https://api.github.com/users/VladimirKhvostov/events{/privacy}","received_events_url":"https://api.github.com/users/VladimirKhvostov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-07-18T02:54:11Z","updated_at":"2016-07-18T20:04:30Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/github/git-lfs/pulls/1379","html_url":"https://github.com/github/git-lfs/pull/1379","diff_url":"https://github.com/github/git-lfs/pull/1379.diff","patch_url":"https://github.com/github/git-lfs/pull/1379.patch"},"body":"GetAuthType method in https://github.com/github/git-lfs/blob/master/httputil/request.go#L174 only takes first WWW-Authenticate header into account. If server sends the following headers:\r\n```\r\nWWW-Authenticate: Bearer\r\nWWW-Authenticate: Negotiate\r\nWWW-Authenticate: NTLM\r\n```\r\nthe code returns \"basic\", which is definitely not correct in this case.\r\n\r\nThis change fixes this issue.  With this change we will also handle Negotiate authentication.\r\n\r\nBug: https://github.com/github/git-lfs/issues/1377"},"comment":{"url":"https://api.github.com/repos/github/git-lfs/issues/comments/233441941","html_url":"https://github.com/github/git-lfs/pull/1379#issuecomment-233441941","issue_url":"https://api.github.com/repos/github/git-lfs/issues/1379","id":233441941,"user":{"login":"ttaylorr","id":443245,"avatar_url":"https://avatars.githubusercontent.com/u/443245?v=3","gravatar_id":"","url":"https://api.github.com/users/ttaylorr","html_url":"https://github.com/ttaylorr","followers_url":"https://api.github.com/users/ttaylorr/followers","following_url":"https://api.github.com/users/ttaylorr/following{/other_user}","gists_url":"https://api.github.com/users/ttaylorr/gists{/gist_id}","starred_url":"https://api.github.com/users/ttaylorr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ttaylorr/subscriptions","organizations_url":"https://api.github.com/users/ttaylorr/orgs","repos_url":"https://api.github.com/users/ttaylorr/repos","events_url":"https://api.github.com/users/ttaylorr/events{/privacy}","received_events_url":"https://api.github.com/users/ttaylorr/received_events","type":"User","site_admin":false},"created_at":"2016-07-18T20:04:30Z","updated_at":"2016-07-18T20:04:30Z","body":"Great, thanks! 👍 "}}
{"actor":{"display_login":"ttaylorr"}}