{"action":"created","comment":{"url":"https://api.github.com/repos/jzelinskie/geddit/pulls/comments/74977069","id":74977069,"diff_hunk":"@@ -44,7 +44,16 @@ func NewLoginSession(username, password, useragent string) (*LoginSession, error\n \t\t\"passwd\":   {password},\n \t\t\"api_type\": {\"json\"},\n \t}\n-\tresp, err := http.PostForm(loginURL, postValues)\n+\n+\treq, err := http.NewRequest(\"POST\", loginURL, strings.NewReader(postValues.Encode()))\n+\tif err != nil {\n+\t\treturn nil, err\n+\t}\n+\treq.Header.Set(\"Content-Type\", \"application/x-www-form-urlencoded\")\n+\treq.Header.Set(\"User-Agent\", \"useragent\")","path":"login_session.go","position":null,"original_position":11,"commit_id":"5e9072a18b41f3d4970a62e09c1c7a68d6c87f2d","original_commit_id":"ad88d9eb658d113ae7573cfc8c7a6c20bc91abe3","user":{"login":"mdp","id":2868,"avatar_url":"https://avatars.githubusercontent.com/u/2868?v=3","gravatar_id":"","url":"https://api.github.com/users/mdp","html_url":"https://github.com/mdp","followers_url":"https://api.github.com/users/mdp/followers","following_url":"https://api.github.com/users/mdp/following{/other_user}","gists_url":"https://api.github.com/users/mdp/gists{/gist_id}","starred_url":"https://api.github.com/users/mdp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdp/subscriptions","organizations_url":"https://api.github.com/users/mdp/orgs","repos_url":"https://api.github.com/users/mdp/repos","events_url":"https://api.github.com/users/mdp/events{/privacy}","received_events_url":"https://api.github.com/users/mdp/received_events","type":"User","site_admin":false},"body":"Yes, sorry this was a mistake on my part. I've updated the PR.","created_at":"2016-08-16T17:06:31Z","updated_at":"2016-08-16T17:06:31Z","html_url":"https://github.com/jzelinskie/geddit/pull/24#discussion_r74977069","pull_request_url":"https://api.github.com/repos/jzelinskie/geddit/pulls/24","_links":{"self":{"href":"https://api.github.com/repos/jzelinskie/geddit/pulls/comments/74977069"},"html":{"href":"https://github.com/jzelinskie/geddit/pull/24#discussion_r74977069"},"pull_request":{"href":"https://api.github.com/repos/jzelinskie/geddit/pulls/24"}}},"pull_request":{"url":"https://api.github.com/repos/jzelinskie/geddit/pulls/24","id":81257927,"html_url":"https://github.com/jzelinskie/geddit/pull/24","diff_url":"https://github.com/jzelinskie/geddit/pull/24.diff","patch_url":"https://github.com/jzelinskie/geddit/pull/24.patch","issue_url":"https://api.github.com/repos/jzelinskie/geddit/issues/24","number":24,"state":"open","locked":false,"title":"Fix issue with rate limiting on login","user":{"login":"mdp","id":2868,"avatar_url":"https://avatars.githubusercontent.com/u/2868?v=3","gravatar_id":"","url":"https://api.github.com/users/mdp","html_url":"https://github.com/mdp","followers_url":"https://api.github.com/users/mdp/followers","following_url":"https://api.github.com/users/mdp/following{/other_user}","gists_url":"https://api.github.com/users/mdp/gists{/gist_id}","starred_url":"https://api.github.com/users/mdp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdp/subscriptions","organizations_url":"https://api.github.com/users/mdp/orgs","repos_url":"https://api.github.com/users/mdp/repos","events_url":"https://api.github.com/users/mdp/events{/privacy}","received_events_url":"https://api.github.com/users/mdp/received_events","type":"User","site_admin":false},"body":"Reddit /api/login/username is now returning 429 based on the generic golang user-agent string. We need to use the custom useragent to make the first request.","created_at":"2016-08-14T23:32:46Z","updated_at":"2016-08-16T17:06:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a2b235b11d8dbcf57097fd7094ec4be33edf7767","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/jzelinskie/geddit/pulls/24/commits","review_comments_url":"https://api.github.com/repos/jzelinskie/geddit/pulls/24/comments","review_comment_url":"https://api.github.com/repos/jzelinskie/geddit/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jzelinskie/geddit/issues/24/comments","statuses_url":"https://api.github.com/repos/jzelinskie/geddit/statuses/5e9072a18b41f3d4970a62e09c1c7a68d6c87f2d","head":{"label":"mdp:429_fix","ref":"429_fix","sha":"5e9072a18b41f3d4970a62e09c1c7a68d6c87f2d","user":{"login":"mdp","id":2868,"avatar_url":"https://avatars.githubusercontent.com/u/2868?v=3","gravatar_id":"","url":"https://api.github.com/users/mdp","html_url":"https://github.com/mdp","followers_url":"https://api.github.com/users/mdp/followers","following_url":"https://api.github.com/users/mdp/following{/other_user}","gists_url":"https://api.github.com/users/mdp/gists{/gist_id}","starred_url":"https://api.github.com/users/mdp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdp/subscriptions","organizations_url":"https://api.github.com/users/mdp/orgs","repos_url":"https://api.github.com/users/mdp/repos","events_url":"https://api.github.com/users/mdp/events{/privacy}","received_events_url":"https://api.github.com/users/mdp/received_events","type":"User","site_admin":false},"repo":{"id":65690790,"name":"geddit","full_name":"mdp/geddit","owner":{"login":"mdp","id":2868,"avatar_url":"https://avatars.githubusercontent.com/u/2868?v=3","gravatar_id":"","url":"https://api.github.com/users/mdp","html_url":"https://github.com/mdp","followers_url":"https://api.github.com/users/mdp/followers","following_url":"https://api.github.com/users/mdp/following{/other_user}","gists_url":"https://api.github.com/users/mdp/gists{/gist_id}","starred_url":"https://api.github.com/users/mdp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdp/subscriptions","organizations_url":"https://api.github.com/users/mdp/orgs","repos_url":"https://api.github.com/users/mdp/repos","events_url":"https://api.github.com/users/mdp/events{/privacy}","received_events_url":"https://api.github.com/users/mdp/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mdp/geddit","description":"golang reddit api wrapper","fork":true,"url":"https://api.github.com/repos/mdp/geddit","forks_url":"https://api.github.com/repos/mdp/geddit/forks","keys_url":"https://api.github.com/repos/mdp/geddit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mdp/geddit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mdp/geddit/teams","hooks_url":"https://api.github.com/repos/mdp/geddit/hooks","issue_events_url":"https://api.github.com/repos/mdp/geddit/issues/events{/number}","events_url":"https://api.github.com/repos/mdp/geddit/events","assignees_url":"https://api.github.com/repos/mdp/geddit/assignees{/user}","branches_url":"https://api.github.com/repos/mdp/geddit/branches{/branch}","tags_url":"https://api.github.com/repos/mdp/geddit/tags","blobs_url":"https://api.github.com/repos/mdp/geddit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mdp/geddit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mdp/geddit/git/refs{/sha}","trees_url":"https://api.github.com/repos/mdp/geddit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mdp/geddit/statuses/{sha}","languages_url":"https://api.github.com/repos/mdp/geddit/languages","stargazers_url":"https://api.github.com/repos/mdp/geddit/stargazers","contributors_url":"https://api.github.com/repos/mdp/geddit/contributors","subscribers_url":"https://api.github.com/repos/mdp/geddit/subscribers","subscription_url":"https://api.github.com/repos/mdp/geddit/subscription","commits_url":"https://api.github.com/repos/mdp/geddit/commits{/sha}","git_commits_url":"https://api.github.com/repos/mdp/geddit/git/commits{/sha}","comments_url":"https://api.github.com/repos/mdp/geddit/comments{/number}","issue_comment_url":"https://api.github.com/repos/mdp/geddit/issues/comments{/number}","contents_url":"https://api.github.com/repos/mdp/geddit/contents/{+path}","compare_url":"https://api.github.com/repos/mdp/geddit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mdp/geddit/merges","archive_url":"https://api.github.com/repos/mdp/geddit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mdp/geddit/downloads","issues_url":"https://api.github.com/repos/mdp/geddit/issues{/number}","pulls_url":"https://api.github.com/repos/mdp/geddit/pulls{/number}","milestones_url":"https://api.github.com/repos/mdp/geddit/milestones{/number}","notifications_url":"https://api.github.com/repos/mdp/geddit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mdp/geddit/labels{/name}","releases_url":"https://api.github.com/repos/mdp/geddit/releases{/id}","deployments_url":"https://api.github.com/repos/mdp/geddit/deployments","created_at":"2016-08-14T23:19:59Z","updated_at":"2016-08-14T23:20:00Z","pushed_at":"2016-08-16T17:04:54Z","git_url":"git://github.com/mdp/geddit.git","ssh_url":"git@github.com:mdp/geddit.git","clone_url":"https://github.com/mdp/geddit.git","svn_url":"https://github.com/mdp/geddit","homepage":"","size":64,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"jzelinskie:master","ref":"master","sha":"06f309acb8eab9b2cf14acc978a2adb8311cbcae","user":{"login":"jzelinskie","id":343539,"avatar_url":"https://avatars.githubusercontent.com/u/343539?v=3","gravatar_id":"","url":"https://api.github.com/users/jzelinskie","html_url":"https://github.com/jzelinskie","followers_url":"https://api.github.com/users/jzelinskie/followers","following_url":"https://api.github.com/users/jzelinskie/following{/other_user}","gists_url":"https://api.github.com/users/jzelinskie/gists{/gist_id}","starred_url":"https://api.github.com/users/jzelinskie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jzelinskie/subscriptions","organizations_url":"https://api.github.com/users/jzelinskie/orgs","repos_url":"https://api.github.com/users/jzelinskie/repos","events_url":"https://api.github.com/users/jzelinskie/events{/privacy}","received_events_url":"https://api.github.com/users/jzelinskie/received_events","type":"User","site_admin":false},"repo":{"id":5505117,"name":"geddit","full_name":"jzelinskie/geddit","owner":{"login":"jzelinskie","id":343539,"avatar_url":"https://avatars.githubusercontent.com/u/343539?v=3","gravatar_id":"","url":"https://api.github.com/users/jzelinskie","html_url":"https://github.com/jzelinskie","followers_url":"https://api.github.com/users/jzelinskie/followers","following_url":"https://api.github.com/users/jzelinskie/following{/other_user}","gists_url":"https://api.github.com/users/jzelinskie/gists{/gist_id}","starred_url":"https://api.github.com/users/jzelinskie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jzelinskie/subscriptions","organizations_url":"https://api.github.com/users/jzelinskie/orgs","repos_url":"https://api.github.com/users/jzelinskie/repos","events_url":"https://api.github.com/users/jzelinskie/events{/privacy}","received_events_url":"https://api.github.com/users/jzelinskie/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jzelinskie/geddit","description":"golang reddit api wrapper","fork":false,"url":"https://api.github.com/repos/jzelinskie/geddit","forks_url":"https://api.github.com/repos/jzelinskie/geddit/forks","keys_url":"https://api.github.com/repos/jzelinskie/geddit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jzelinskie/geddit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jzelinskie/geddit/teams","hooks_url":"https://api.github.com/repos/jzelinskie/geddit/hooks","issue_events_url":"https://api.github.com/repos/jzelinskie/geddit/issues/events{/number}","events_url":"https://api.github.com/repos/jzelinskie/geddit/events","assignees_url":"https://api.github.com/repos/jzelinskie/geddit/assignees{/user}","branches_url":"https://api.github.com/repos/jzelinskie/geddit/branches{/branch}","tags_url":"https://api.github.com/repos/jzelinskie/geddit/tags","blobs_url":"https://api.github.com/repos/jzelinskie/geddit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jzelinskie/geddit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jzelinskie/geddit/git/refs{/sha}","trees_url":"https://api.github.com/repos/jzelinskie/geddit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jzelinskie/geddit/statuses/{sha}","languages_url":"https://api.github.com/repos/jzelinskie/geddit/languages","stargazers_url":"https://api.github.com/repos/jzelinskie/geddit/stargazers","contributors_url":"https://api.github.com/repos/jzelinskie/geddit/contributors","subscribers_url":"https://api.github.com/repos/jzelinskie/geddit/subscribers","subscription_url":"https://api.github.com/repos/jzelinskie/geddit/subscription","commits_url":"https://api.github.com/repos/jzelinskie/geddit/commits{/sha}","git_commits_url":"https://api.github.com/repos/jzelinskie/geddit/git/commits{/sha}","comments_url":"https://api.github.com/repos/jzelinskie/geddit/comments{/number}","issue_comment_url":"https://api.github.com/repos/jzelinskie/geddit/issues/comments{/number}","contents_url":"https://api.github.com/repos/jzelinskie/geddit/contents/{+path}","compare_url":"https://api.github.com/repos/jzelinskie/geddit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jzelinskie/geddit/merges","archive_url":"https://api.github.com/repos/jzelinskie/geddit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jzelinskie/geddit/downloads","issues_url":"https://api.github.com/repos/jzelinskie/geddit/issues{/number}","pulls_url":"https://api.github.com/repos/jzelinskie/geddit/pulls{/number}","milestones_url":"https://api.github.com/repos/jzelinskie/geddit/milestones{/number}","notifications_url":"https://api.github.com/repos/jzelinskie/geddit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jzelinskie/geddit/labels{/name}","releases_url":"https://api.github.com/repos/jzelinskie/geddit/releases{/id}","deployments_url":"https://api.github.com/repos/jzelinskie/geddit/deployments","created_at":"2012-08-22T05:26:39Z","updated_at":"2016-08-16T06:25:47Z","pushed_at":"2016-08-16T17:04:54Z","git_url":"git://github.com/jzelinskie/geddit.git","ssh_url":"git@github.com:jzelinskie/geddit.git","clone_url":"https://github.com/jzelinskie/geddit.git","svn_url":"https://github.com/jzelinskie/geddit","homepage":"","size":90,"stargazers_count":77,"watchers_count":77,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":38,"mirror_url":null,"open_issues_count":11,"forks":38,"open_issues":11,"watchers":77,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jzelinskie/geddit/pulls/24"},"html":{"href":"https://github.com/jzelinskie/geddit/pull/24"},"issue":{"href":"https://api.github.com/repos/jzelinskie/geddit/issues/24"},"comments":{"href":"https://api.github.com/repos/jzelinskie/geddit/issues/24/comments"},"review_comments":{"href":"https://api.github.com/repos/jzelinskie/geddit/pulls/24/comments"},"review_comment":{"href":"https://api.github.com/repos/jzelinskie/geddit/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jzelinskie/geddit/pulls/24/commits"},"statuses":{"href":"https://api.github.com/repos/jzelinskie/geddit/statuses/5e9072a18b41f3d4970a62e09c1c7a68d6c87f2d"}}}}
{"actor":{"display_login":"mdp"}}