{"action":"created","issue":{"url":"https://api.github.com/repos/andygrunwald/go-gerrit/issues/12","repository_url":"https://api.github.com/repos/andygrunwald/go-gerrit","labels_url":"https://api.github.com/repos/andygrunwald/go-gerrit/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/andygrunwald/go-gerrit/issues/12/comments","events_url":"https://api.github.com/repos/andygrunwald/go-gerrit/issues/12/events","html_url":"https://github.com/andygrunwald/go-gerrit/pull/12","id":175651103,"number":12,"title":"Don't reuse the existing request for digest based auth.","user":{"login":"opalmer","id":255117,"avatar_url":"https://avatars.githubusercontent.com/u/255117?v=3","gravatar_id":"","url":"https://api.github.com/users/opalmer","html_url":"https://github.com/opalmer","followers_url":"https://api.github.com/users/opalmer/followers","following_url":"https://api.github.com/users/opalmer/following{/other_user}","gists_url":"https://api.github.com/users/opalmer/gists{/gist_id}","starred_url":"https://api.github.com/users/opalmer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opalmer/subscriptions","organizations_url":"https://api.github.com/users/opalmer/orgs","repos_url":"https://api.github.com/users/opalmer/repos","events_url":"https://api.github.com/users/opalmer/events{/privacy}","received_events_url":"https://api.github.com/users/opalmer/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/andygrunwald/go-gerrit/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2016-09-08T02:31:11Z","updated_at":"2016-09-13T01:58:40Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/andygrunwald/go-gerrit/pulls/12","html_url":"https://github.com/andygrunwald/go-gerrit/pull/12","diff_url":"https://github.com/andygrunwald/go-gerrit/pull/12.diff","patch_url":"https://github.com/andygrunwald/go-gerrit/pull/12.patch"},"body":"For digest based auth. we were reusing the request anytime we received `StatusUnauthorized` from the server. The first attempt to fix this was to reconstruct the request which worked but was more complicated. This PR improves on the previous approach by:\r\n\r\n* Removing the special digest only code in `Do()`\r\n* Sending a request to the target URI without a body. This reduces the amount of traffic to the server and also helps to allow the http client to reuse the connection in some cases.\r\n\r\nThe above was mostly sourced from commit 30db148."},"comment":{"url":"https://api.github.com/repos/andygrunwald/go-gerrit/issues/comments/246550916","html_url":"https://github.com/andygrunwald/go-gerrit/pull/12#issuecomment-246550916","issue_url":"https://api.github.com/repos/andygrunwald/go-gerrit/issues/12","id":246550916,"user":{"login":"opalmer","id":255117,"avatar_url":"https://avatars.githubusercontent.com/u/255117?v=3","gravatar_id":"","url":"https://api.github.com/users/opalmer","html_url":"https://github.com/opalmer","followers_url":"https://api.github.com/users/opalmer/followers","following_url":"https://api.github.com/users/opalmer/following{/other_user}","gists_url":"https://api.github.com/users/opalmer/gists{/gist_id}","starred_url":"https://api.github.com/users/opalmer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opalmer/subscriptions","organizations_url":"https://api.github.com/users/opalmer/orgs","repos_url":"https://api.github.com/users/opalmer/repos","events_url":"https://api.github.com/users/opalmer/events{/privacy}","received_events_url":"https://api.github.com/users/opalmer/received_events","type":"User","site_admin":false},"created_at":"2016-09-13T01:58:40Z","updated_at":"2016-09-13T01:58:40Z","body":"@andygrunwald, this ready for a look when you get back I think.  I've also opened up #13 which lead to the discovery of this bug.  Unfortunately, this PR only partially fixes #13 which I'm still working on but should probably be addressed in another PR."}}
{"actor":{"display_login":"opalmer"}}