{"action":"created","comment":{"url":"https://api.github.com/repos/kennethreitz/requests/pulls/comments/88292863","pull_request_review_id":8870970,"id":88292863,"diff_hunk":"@@ -343,6 +343,9 @@ def prepare_url(self, url, params):\n         else:\n             url = unicode(url) if is_py2 else str(url)\n \n+        # Remove leading and trailing whitespaces from url\n+        url = url.strip()","path":"requests/models.py","position":null,"original_position":5,"commit_id":"0d7de50dbd7eacb0242506454363c71925d7241a","original_commit_id":"248d3e9f0f8ea1657d9329f8b188a81ca2a65ecc","user":{"login":"hussaintamboli","id":2324958,"avatar_url":"https://avatars.githubusercontent.com/u/2324958?v=3","gravatar_id":"","url":"https://api.github.com/users/hussaintamboli","html_url":"https://github.com/hussaintamboli","followers_url":"https://api.github.com/users/hussaintamboli/followers","following_url":"https://api.github.com/users/hussaintamboli/following{/other_user}","gists_url":"https://api.github.com/users/hussaintamboli/gists{/gist_id}","starred_url":"https://api.github.com/users/hussaintamboli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hussaintamboli/subscriptions","organizations_url":"https://api.github.com/users/hussaintamboli/orgs","repos_url":"https://api.github.com/users/hussaintamboli/repos","events_url":"https://api.github.com/users/hussaintamboli/events{/privacy}","received_events_url":"https://api.github.com/users/hussaintamboli/received_events","type":"User","site_admin":false},"body":"I agree. Fixed it.","created_at":"2016-11-16T17:58:55Z","updated_at":"2016-11-16T17:58:55Z","html_url":"https://github.com/kennethreitz/requests/pull/3697#discussion_r88292863","pull_request_url":"https://api.github.com/repos/kennethreitz/requests/pulls/3697","_links":{"self":{"href":"https://api.github.com/repos/kennethreitz/requests/pulls/comments/88292863"},"html":{"href":"https://github.com/kennethreitz/requests/pull/3697#discussion_r88292863"},"pull_request":{"href":"https://api.github.com/repos/kennethreitz/requests/pulls/3697"}}},"pull_request":{"url":"https://api.github.com/repos/kennethreitz/requests/pulls/3697","id":94011341,"html_url":"https://github.com/kennethreitz/requests/pull/3697","diff_url":"https://github.com/kennethreitz/requests/pull/3697.diff","patch_url":"https://github.com/kennethreitz/requests/pull/3697.patch","issue_url":"https://api.github.com/repos/kennethreitz/requests/issues/3697","number":3697,"state":"open","locked":false,"title":"Fixed issue #3696. Added a test for it as well.","user":{"login":"hussaintamboli","id":2324958,"avatar_url":"https://avatars.githubusercontent.com/u/2324958?v=3","gravatar_id":"","url":"https://api.github.com/users/hussaintamboli","html_url":"https://github.com/hussaintamboli","followers_url":"https://api.github.com/users/hussaintamboli/followers","following_url":"https://api.github.com/users/hussaintamboli/following{/other_user}","gists_url":"https://api.github.com/users/hussaintamboli/gists{/gist_id}","starred_url":"https://api.github.com/users/hussaintamboli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hussaintamboli/subscriptions","organizations_url":"https://api.github.com/users/hussaintamboli/orgs","repos_url":"https://api.github.com/users/hussaintamboli/repos","events_url":"https://api.github.com/users/hussaintamboli/events{/privacy}","received_events_url":"https://api.github.com/users/hussaintamboli/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-11-16T17:23:30Z","updated_at":"2016-11-16T17:58:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"37b959cfbefb7e6d3277f4adee1897a0400518a9","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/kennethreitz/requests/pulls/3697/commits","review_comments_url":"https://api.github.com/repos/kennethreitz/requests/pulls/3697/comments","review_comment_url":"https://api.github.com/repos/kennethreitz/requests/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kennethreitz/requests/issues/3697/comments","statuses_url":"https://api.github.com/repos/kennethreitz/requests/statuses/0d7de50dbd7eacb0242506454363c71925d7241a","head":{"label":"hussaintamboli:master","ref":"master","sha":"0d7de50dbd7eacb0242506454363c71925d7241a","user":{"login":"hussaintamboli","id":2324958,"avatar_url":"https://avatars.githubusercontent.com/u/2324958?v=3","gravatar_id":"","url":"https://api.github.com/users/hussaintamboli","html_url":"https://github.com/hussaintamboli","followers_url":"https://api.github.com/users/hussaintamboli/followers","following_url":"https://api.github.com/users/hussaintamboli/following{/other_user}","gists_url":"https://api.github.com/users/hussaintamboli/gists{/gist_id}","starred_url":"https://api.github.com/users/hussaintamboli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hussaintamboli/subscriptions","organizations_url":"https://api.github.com/users/hussaintamboli/orgs","repos_url":"https://api.github.com/users/hussaintamboli/repos","events_url":"https://api.github.com/users/hussaintamboli/events{/privacy}","received_events_url":"https://api.github.com/users/hussaintamboli/received_events","type":"User","site_admin":false},"repo":{"id":73937965,"name":"requests","full_name":"hussaintamboli/requests","owner":{"login":"hussaintamboli","id":2324958,"avatar_url":"https://avatars.githubusercontent.com/u/2324958?v=3","gravatar_id":"","url":"https://api.github.com/users/hussaintamboli","html_url":"https://github.com/hussaintamboli","followers_url":"https://api.github.com/users/hussaintamboli/followers","following_url":"https://api.github.com/users/hussaintamboli/following{/other_user}","gists_url":"https://api.github.com/users/hussaintamboli/gists{/gist_id}","starred_url":"https://api.github.com/users/hussaintamboli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hussaintamboli/subscriptions","organizations_url":"https://api.github.com/users/hussaintamboli/orgs","repos_url":"https://api.github.com/users/hussaintamboli/repos","events_url":"https://api.github.com/users/hussaintamboli/events{/privacy}","received_events_url":"https://api.github.com/users/hussaintamboli/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hussaintamboli/requests","description":"Python HTTP Requests for Humans™","fork":true,"url":"https://api.github.com/repos/hussaintamboli/requests","forks_url":"https://api.github.com/repos/hussaintamboli/requests/forks","keys_url":"https://api.github.com/repos/hussaintamboli/requests/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hussaintamboli/requests/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hussaintamboli/requests/teams","hooks_url":"https://api.github.com/repos/hussaintamboli/requests/hooks","issue_events_url":"https://api.github.com/repos/hussaintamboli/requests/issues/events{/number}","events_url":"https://api.github.com/repos/hussaintamboli/requests/events","assignees_url":"https://api.github.com/repos/hussaintamboli/requests/assignees{/user}","branches_url":"https://api.github.com/repos/hussaintamboli/requests/branches{/branch}","tags_url":"https://api.github.com/repos/hussaintamboli/requests/tags","blobs_url":"https://api.github.com/repos/hussaintamboli/requests/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hussaintamboli/requests/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hussaintamboli/requests/git/refs{/sha}","trees_url":"https://api.github.com/repos/hussaintamboli/requests/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hussaintamboli/requests/statuses/{sha}","languages_url":"https://api.github.com/repos/hussaintamboli/requests/languages","stargazers_url":"https://api.github.com/repos/hussaintamboli/requests/stargazers","contributors_url":"https://api.github.com/repos/hussaintamboli/requests/contributors","subscribers_url":"https://api.github.com/repos/hussaintamboli/requests/subscribers","subscription_url":"https://api.github.com/repos/hussaintamboli/requests/subscription","commits_url":"https://api.github.com/repos/hussaintamboli/requests/commits{/sha}","git_commits_url":"https://api.github.com/repos/hussaintamboli/requests/git/commits{/sha}","comments_url":"https://api.github.com/repos/hussaintamboli/requests/comments{/number}","issue_comment_url":"https://api.github.com/repos/hussaintamboli/requests/issues/comments{/number}","contents_url":"https://api.github.com/repos/hussaintamboli/requests/contents/{+path}","compare_url":"https://api.github.com/repos/hussaintamboli/requests/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hussaintamboli/requests/merges","archive_url":"https://api.github.com/repos/hussaintamboli/requests/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hussaintamboli/requests/downloads","issues_url":"https://api.github.com/repos/hussaintamboli/requests/issues{/number}","pulls_url":"https://api.github.com/repos/hussaintamboli/requests/pulls{/number}","milestones_url":"https://api.github.com/repos/hussaintamboli/requests/milestones{/number}","notifications_url":"https://api.github.com/repos/hussaintamboli/requests/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hussaintamboli/requests/labels{/name}","releases_url":"https://api.github.com/repos/hussaintamboli/requests/releases{/id}","deployments_url":"https://api.github.com/repos/hussaintamboli/requests/deployments","created_at":"2016-11-16T16:18:50Z","updated_at":"2016-11-16T16:18:54Z","pushed_at":"2016-11-16T17:57:43Z","git_url":"git://github.com/hussaintamboli/requests.git","ssh_url":"git@github.com:hussaintamboli/requests.git","clone_url":"https://github.com/hussaintamboli/requests.git","svn_url":"https://github.com/hussaintamboli/requests","homepage":"python-requests.org","size":10139,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"kennethreitz:master","ref":"master","sha":"eb39a557bde2ea9f72733f9e98227b057d675892","user":{"login":"kennethreitz","id":119893,"avatar_url":"https://avatars.githubusercontent.com/u/119893?v=3","gravatar_id":"","url":"https://api.github.com/users/kennethreitz","html_url":"https://github.com/kennethreitz","followers_url":"https://api.github.com/users/kennethreitz/followers","following_url":"https://api.github.com/users/kennethreitz/following{/other_user}","gists_url":"https://api.github.com/users/kennethreitz/gists{/gist_id}","starred_url":"https://api.github.com/users/kennethreitz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kennethreitz/subscriptions","organizations_url":"https://api.github.com/users/kennethreitz/orgs","repos_url":"https://api.github.com/users/kennethreitz/repos","events_url":"https://api.github.com/users/kennethreitz/events{/privacy}","received_events_url":"https://api.github.com/users/kennethreitz/received_events","type":"User","site_admin":false},"repo":{"id":1362490,"name":"requests","full_name":"kennethreitz/requests","owner":{"login":"kennethreitz","id":119893,"avatar_url":"https://avatars.githubusercontent.com/u/119893?v=3","gravatar_id":"","url":"https://api.github.com/users/kennethreitz","html_url":"https://github.com/kennethreitz","followers_url":"https://api.github.com/users/kennethreitz/followers","following_url":"https://api.github.com/users/kennethreitz/following{/other_user}","gists_url":"https://api.github.com/users/kennethreitz/gists{/gist_id}","starred_url":"https://api.github.com/users/kennethreitz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kennethreitz/subscriptions","organizations_url":"https://api.github.com/users/kennethreitz/orgs","repos_url":"https://api.github.com/users/kennethreitz/repos","events_url":"https://api.github.com/users/kennethreitz/events{/privacy}","received_events_url":"https://api.github.com/users/kennethreitz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kennethreitz/requests","description":"Python HTTP Requests for Humans™","fork":false,"url":"https://api.github.com/repos/kennethreitz/requests","forks_url":"https://api.github.com/repos/kennethreitz/requests/forks","keys_url":"https://api.github.com/repos/kennethreitz/requests/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kennethreitz/requests/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kennethreitz/requests/teams","hooks_url":"https://api.github.com/repos/kennethreitz/requests/hooks","issue_events_url":"https://api.github.com/repos/kennethreitz/requests/issues/events{/number}","events_url":"https://api.github.com/repos/kennethreitz/requests/events","assignees_url":"https://api.github.com/repos/kennethreitz/requests/assignees{/user}","branches_url":"https://api.github.com/repos/kennethreitz/requests/branches{/branch}","tags_url":"https://api.github.com/repos/kennethreitz/requests/tags","blobs_url":"https://api.github.com/repos/kennethreitz/requests/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kennethreitz/requests/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kennethreitz/requests/git/refs{/sha}","trees_url":"https://api.github.com/repos/kennethreitz/requests/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kennethreitz/requests/statuses/{sha}","languages_url":"https://api.github.com/repos/kennethreitz/requests/languages","stargazers_url":"https://api.github.com/repos/kennethreitz/requests/stargazers","contributors_url":"https://api.github.com/repos/kennethreitz/requests/contributors","subscribers_url":"https://api.github.com/repos/kennethreitz/requests/subscribers","subscription_url":"https://api.github.com/repos/kennethreitz/requests/subscription","commits_url":"https://api.github.com/repos/kennethreitz/requests/commits{/sha}","git_commits_url":"https://api.github.com/repos/kennethreitz/requests/git/commits{/sha}","comments_url":"https://api.github.com/repos/kennethreitz/requests/comments{/number}","issue_comment_url":"https://api.github.com/repos/kennethreitz/requests/issues/comments{/number}","contents_url":"https://api.github.com/repos/kennethreitz/requests/contents/{+path}","compare_url":"https://api.github.com/repos/kennethreitz/requests/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kennethreitz/requests/merges","archive_url":"https://api.github.com/repos/kennethreitz/requests/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kennethreitz/requests/downloads","issues_url":"https://api.github.com/repos/kennethreitz/requests/issues{/number}","pulls_url":"https://api.github.com/repos/kennethreitz/requests/pulls{/number}","milestones_url":"https://api.github.com/repos/kennethreitz/requests/milestones{/number}","notifications_url":"https://api.github.com/repos/kennethreitz/requests/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kennethreitz/requests/labels{/name}","releases_url":"https://api.github.com/repos/kennethreitz/requests/releases{/id}","deployments_url":"https://api.github.com/repos/kennethreitz/requests/deployments","created_at":"2011-02-13T18:38:17Z","updated_at":"2016-11-16T16:57:56Z","pushed_at":"2016-11-16T17:57:44Z","git_url":"git://github.com/kennethreitz/requests.git","ssh_url":"git@github.com:kennethreitz/requests.git","clone_url":"https://github.com/kennethreitz/requests.git","svn_url":"https://github.com/kennethreitz/requests","homepage":"python-requests.org","size":10139,"stargazers_count":21838,"watchers_count":21838,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3891,"mirror_url":null,"open_issues_count":98,"forks":3891,"open_issues":98,"watchers":21838,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kennethreitz/requests/pulls/3697"},"html":{"href":"https://github.com/kennethreitz/requests/pull/3697"},"issue":{"href":"https://api.github.com/repos/kennethreitz/requests/issues/3697"},"comments":{"href":"https://api.github.com/repos/kennethreitz/requests/issues/3697/comments"},"review_comments":{"href":"https://api.github.com/repos/kennethreitz/requests/pulls/3697/comments"},"review_comment":{"href":"https://api.github.com/repos/kennethreitz/requests/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kennethreitz/requests/pulls/3697/commits"},"statuses":{"href":"https://api.github.com/repos/kennethreitz/requests/statuses/0d7de50dbd7eacb0242506454363c71925d7241a"}}}}
{"actor":{"display_login":"hussaintamboli"}}