{"action":"created","comment":{"url":"https://api.github.com/repos/benoitc/gunicorn/pulls/comments/156272608","pull_request_review_id":82721434,"id":156272608,"diff_hunk":"@@ -543,3 +543,14 @@ def app(environ, start_response):\n         return [msg]\n \n     return app\n+\n+\n+def split_request_uri(uri):\n+    if uri.startswith(\"//\"):\n+        # When the path starts with //, urlsplit considers it as a\n+        # relative uri while the RFC says we should consider it as abs_path\n+        # http://www.w3.org/Protocols/rfc2616/rfc2616-sec5.html#sec5.1.2\n+        parts = _compat.urlsplit(\".\" + uri)","path":"gunicorn/util.py","position":11,"original_position":11,"commit_id":"ba151de61eabb55ed4727f6f3a3fce35a78efc6c","original_commit_id":"ba151de61eabb55ed4727f6f3a3fce35a78efc6c","user":{"login":"benoitc","id":14498,"avatar_url":"https://avatars1.githubusercontent.com/u/14498?v=4","gravatar_id":"","url":"https://api.github.com/users/benoitc","html_url":"https://github.com/benoitc","followers_url":"https://api.github.com/users/benoitc/followers","following_url":"https://api.github.com/users/benoitc/following{/other_user}","gists_url":"https://api.github.com/users/benoitc/gists{/gist_id}","starred_url":"https://api.github.com/users/benoitc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benoitc/subscriptions","organizations_url":"https://api.github.com/users/benoitc/orgs","repos_url":"https://api.github.com/users/benoitc/repos","events_url":"https://api.github.com/users/benoitc/events{/privacy}","received_events_url":"https://api.github.com/users/benoitc/received_events","type":"User","site_admin":false},"body":"@tilgovi thanks. imo that worlrth a comment for readability.","created_at":"2017-12-12T05:09:29Z","updated_at":"2017-12-12T05:09:30Z","html_url":"https://github.com/benoitc/gunicorn/pull/1511#discussion_r156272608","pull_request_url":"https://api.github.com/repos/benoitc/gunicorn/pulls/1511","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/benoitc/gunicorn/pulls/comments/156272608"},"html":{"href":"https://github.com/benoitc/gunicorn/pull/1511#discussion_r156272608"},"pull_request":{"href":"https://api.github.com/repos/benoitc/gunicorn/pulls/1511"}},"in_reply_to_id":155960160},"pull_request":{"url":"https://api.github.com/repos/benoitc/gunicorn/pulls/1511","id":120148133,"html_url":"https://github.com/benoitc/gunicorn/pull/1511","diff_url":"https://github.com/benoitc/gunicorn/pull/1511.diff","patch_url":"https://github.com/benoitc/gunicorn/pull/1511.patch","issue_url":"https://api.github.com/repos/benoitc/gunicorn/issues/1511","number":1511,"state":"open","locked":false,"title":"Do not strip leading slash from path","user":{"login":"YuppY","id":448231,"avatar_url":"https://avatars3.githubusercontent.com/u/448231?v=4","gravatar_id":"","url":"https://api.github.com/users/YuppY","html_url":"https://github.com/YuppY","followers_url":"https://api.github.com/users/YuppY/followers","following_url":"https://api.github.com/users/YuppY/following{/other_user}","gists_url":"https://api.github.com/users/YuppY/gists{/gist_id}","starred_url":"https://api.github.com/users/YuppY/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YuppY/subscriptions","organizations_url":"https://api.github.com/users/YuppY/orgs","repos_url":"https://api.github.com/users/YuppY/repos","events_url":"https://api.github.com/users/YuppY/events{/privacy}","received_events_url":"https://api.github.com/users/YuppY/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-05-11T16:24:04Z","updated_at":"2017-12-12T05:09:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"aa1bb94c3d41c792d46a382f6e9c99da3874b49c","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/benoitc/gunicorn/pulls/1511/commits","review_comments_url":"https://api.github.com/repos/benoitc/gunicorn/pulls/1511/comments","review_comment_url":"https://api.github.com/repos/benoitc/gunicorn/pulls/comments{/number}","comments_url":"https://api.github.com/repos/benoitc/gunicorn/issues/1511/comments","statuses_url":"https://api.github.com/repos/benoitc/gunicorn/statuses/ba151de61eabb55ed4727f6f3a3fce35a78efc6c","head":{"label":"YuppY:master","ref":"master","sha":"ba151de61eabb55ed4727f6f3a3fce35a78efc6c","user":{"login":"YuppY","id":448231,"avatar_url":"https://avatars3.githubusercontent.com/u/448231?v=4","gravatar_id":"","url":"https://api.github.com/users/YuppY","html_url":"https://github.com/YuppY","followers_url":"https://api.github.com/users/YuppY/followers","following_url":"https://api.github.com/users/YuppY/following{/other_user}","gists_url":"https://api.github.com/users/YuppY/gists{/gist_id}","starred_url":"https://api.github.com/users/YuppY/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YuppY/subscriptions","organizations_url":"https://api.github.com/users/YuppY/orgs","repos_url":"https://api.github.com/users/YuppY/repos","events_url":"https://api.github.com/users/YuppY/events{/privacy}","received_events_url":"https://api.github.com/users/YuppY/received_events","type":"User","site_admin":false},"repo":{"id":90995618,"name":"gunicorn","full_name":"YuppY/gunicorn","owner":{"login":"YuppY","id":448231,"avatar_url":"https://avatars3.githubusercontent.com/u/448231?v=4","gravatar_id":"","url":"https://api.github.com/users/YuppY","html_url":"https://github.com/YuppY","followers_url":"https://api.github.com/users/YuppY/followers","following_url":"https://api.github.com/users/YuppY/following{/other_user}","gists_url":"https://api.github.com/users/YuppY/gists{/gist_id}","starred_url":"https://api.github.com/users/YuppY/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YuppY/subscriptions","organizations_url":"https://api.github.com/users/YuppY/orgs","repos_url":"https://api.github.com/users/YuppY/repos","events_url":"https://api.github.com/users/YuppY/events{/privacy}","received_events_url":"https://api.github.com/users/YuppY/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/YuppY/gunicorn","description":"gunicorn 'Green Unicorn' is a WSGI HTTP Server for UNIX, fast clients and sleepy applications.","fork":true,"url":"https://api.github.com/repos/YuppY/gunicorn","forks_url":"https://api.github.com/repos/YuppY/gunicorn/forks","keys_url":"https://api.github.com/repos/YuppY/gunicorn/keys{/key_id}","collaborators_url":"https://api.github.com/repos/YuppY/gunicorn/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/YuppY/gunicorn/teams","hooks_url":"https://api.github.com/repos/YuppY/gunicorn/hooks","issue_events_url":"https://api.github.com/repos/YuppY/gunicorn/issues/events{/number}","events_url":"https://api.github.com/repos/YuppY/gunicorn/events","assignees_url":"https://api.github.com/repos/YuppY/gunicorn/assignees{/user}","branches_url":"https://api.github.com/repos/YuppY/gunicorn/branches{/branch}","tags_url":"https://api.github.com/repos/YuppY/gunicorn/tags","blobs_url":"https://api.github.com/repos/YuppY/gunicorn/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/YuppY/gunicorn/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/YuppY/gunicorn/git/refs{/sha}","trees_url":"https://api.github.com/repos/YuppY/gunicorn/git/trees{/sha}","statuses_url":"https://api.github.com/repos/YuppY/gunicorn/statuses/{sha}","languages_url":"https://api.github.com/repos/YuppY/gunicorn/languages","stargazers_url":"https://api.github.com/repos/YuppY/gunicorn/stargazers","contributors_url":"https://api.github.com/repos/YuppY/gunicorn/contributors","subscribers_url":"https://api.github.com/repos/YuppY/gunicorn/subscribers","subscription_url":"https://api.github.com/repos/YuppY/gunicorn/subscription","commits_url":"https://api.github.com/repos/YuppY/gunicorn/commits{/sha}","git_commits_url":"https://api.github.com/repos/YuppY/gunicorn/git/commits{/sha}","comments_url":"https://api.github.com/repos/YuppY/gunicorn/comments{/number}","issue_comment_url":"https://api.github.com/repos/YuppY/gunicorn/issues/comments{/number}","contents_url":"https://api.github.com/repos/YuppY/gunicorn/contents/{+path}","compare_url":"https://api.github.com/repos/YuppY/gunicorn/compare/{base}...{head}","merges_url":"https://api.github.com/repos/YuppY/gunicorn/merges","archive_url":"https://api.github.com/repos/YuppY/gunicorn/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/YuppY/gunicorn/downloads","issues_url":"https://api.github.com/repos/YuppY/gunicorn/issues{/number}","pulls_url":"https://api.github.com/repos/YuppY/gunicorn/pulls{/number}","milestones_url":"https://api.github.com/repos/YuppY/gunicorn/milestones{/number}","notifications_url":"https://api.github.com/repos/YuppY/gunicorn/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/YuppY/gunicorn/labels{/name}","releases_url":"https://api.github.com/repos/YuppY/gunicorn/releases{/id}","deployments_url":"https://api.github.com/repos/YuppY/gunicorn/deployments","created_at":"2017-05-11T15:35:47Z","updated_at":"2017-05-11T15:35:51Z","pushed_at":"2017-12-10T20:48:28Z","git_url":"git://github.com/YuppY/gunicorn.git","ssh_url":"git@github.com:YuppY/gunicorn.git","clone_url":"https://github.com/YuppY/gunicorn.git","svn_url":"https://github.com/YuppY/gunicorn","homepage":"http://www.gunicorn.org","size":3686,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"benoitc:master","ref":"master","sha":"cb2f47183153368b70b9c06d14e43a4bf6ac7d92","user":{"login":"benoitc","id":14498,"avatar_url":"https://avatars1.githubusercontent.com/u/14498?v=4","gravatar_id":"","url":"https://api.github.com/users/benoitc","html_url":"https://github.com/benoitc","followers_url":"https://api.github.com/users/benoitc/followers","following_url":"https://api.github.com/users/benoitc/following{/other_user}","gists_url":"https://api.github.com/users/benoitc/gists{/gist_id}","starred_url":"https://api.github.com/users/benoitc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benoitc/subscriptions","organizations_url":"https://api.github.com/users/benoitc/orgs","repos_url":"https://api.github.com/users/benoitc/repos","events_url":"https://api.github.com/users/benoitc/events{/privacy}","received_events_url":"https://api.github.com/users/benoitc/received_events","type":"User","site_admin":false},"repo":{"id":390510,"name":"gunicorn","full_name":"benoitc/gunicorn","owner":{"login":"benoitc","id":14498,"avatar_url":"https://avatars1.githubusercontent.com/u/14498?v=4","gravatar_id":"","url":"https://api.github.com/users/benoitc","html_url":"https://github.com/benoitc","followers_url":"https://api.github.com/users/benoitc/followers","following_url":"https://api.github.com/users/benoitc/following{/other_user}","gists_url":"https://api.github.com/users/benoitc/gists{/gist_id}","starred_url":"https://api.github.com/users/benoitc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benoitc/subscriptions","organizations_url":"https://api.github.com/users/benoitc/orgs","repos_url":"https://api.github.com/users/benoitc/repos","events_url":"https://api.github.com/users/benoitc/events{/privacy}","received_events_url":"https://api.github.com/users/benoitc/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/benoitc/gunicorn","description":"gunicorn 'Green Unicorn' is a WSGI HTTP Server for UNIX, fast clients and sleepy applications.","fork":false,"url":"https://api.github.com/repos/benoitc/gunicorn","forks_url":"https://api.github.com/repos/benoitc/gunicorn/forks","keys_url":"https://api.github.com/repos/benoitc/gunicorn/keys{/key_id}","collaborators_url":"https://api.github.com/repos/benoitc/gunicorn/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/benoitc/gunicorn/teams","hooks_url":"https://api.github.com/repos/benoitc/gunicorn/hooks","issue_events_url":"https://api.github.com/repos/benoitc/gunicorn/issues/events{/number}","events_url":"https://api.github.com/repos/benoitc/gunicorn/events","assignees_url":"https://api.github.com/repos/benoitc/gunicorn/assignees{/user}","branches_url":"https://api.github.com/repos/benoitc/gunicorn/branches{/branch}","tags_url":"https://api.github.com/repos/benoitc/gunicorn/tags","blobs_url":"https://api.github.com/repos/benoitc/gunicorn/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/benoitc/gunicorn/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/benoitc/gunicorn/git/refs{/sha}","trees_url":"https://api.github.com/repos/benoitc/gunicorn/git/trees{/sha}","statuses_url":"https://api.github.com/repos/benoitc/gunicorn/statuses/{sha}","languages_url":"https://api.github.com/repos/benoitc/gunicorn/languages","stargazers_url":"https://api.github.com/repos/benoitc/gunicorn/stargazers","contributors_url":"https://api.github.com/repos/benoitc/gunicorn/contributors","subscribers_url":"https://api.github.com/repos/benoitc/gunicorn/subscribers","subscription_url":"https://api.github.com/repos/benoitc/gunicorn/subscription","commits_url":"https://api.github.com/repos/benoitc/gunicorn/commits{/sha}","git_commits_url":"https://api.github.com/repos/benoitc/gunicorn/git/commits{/sha}","comments_url":"https://api.github.com/repos/benoitc/gunicorn/comments{/number}","issue_comment_url":"https://api.github.com/repos/benoitc/gunicorn/issues/comments{/number}","contents_url":"https://api.github.com/repos/benoitc/gunicorn/contents/{+path}","compare_url":"https://api.github.com/repos/benoitc/gunicorn/compare/{base}...{head}","merges_url":"https://api.github.com/repos/benoitc/gunicorn/merges","archive_url":"https://api.github.com/repos/benoitc/gunicorn/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/benoitc/gunicorn/downloads","issues_url":"https://api.github.com/repos/benoitc/gunicorn/issues{/number}","pulls_url":"https://api.github.com/repos/benoitc/gunicorn/pulls{/number}","milestones_url":"https://api.github.com/repos/benoitc/gunicorn/milestones{/number}","notifications_url":"https://api.github.com/repos/benoitc/gunicorn/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/benoitc/gunicorn/labels{/name}","releases_url":"https://api.github.com/repos/benoitc/gunicorn/releases{/id}","deployments_url":"https://api.github.com/repos/benoitc/gunicorn/deployments","created_at":"2009-11-30T18:18:08Z","updated_at":"2017-12-12T02:17:44Z","pushed_at":"2017-12-11T20:01:42Z","git_url":"git://github.com/benoitc/gunicorn.git","ssh_url":"git@github.com:benoitc/gunicorn.git","clone_url":"https://github.com/benoitc/gunicorn.git","svn_url":"https://github.com/benoitc/gunicorn","homepage":"http://www.gunicorn.org","size":3682,"stargazers_count":4366,"watchers_count":4366,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":889,"mirror_url":null,"archived":false,"open_issues_count":169,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":889,"open_issues":169,"watchers":4366,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/benoitc/gunicorn/pulls/1511"},"html":{"href":"https://github.com/benoitc/gunicorn/pull/1511"},"issue":{"href":"https://api.github.com/repos/benoitc/gunicorn/issues/1511"},"comments":{"href":"https://api.github.com/repos/benoitc/gunicorn/issues/1511/comments"},"review_comments":{"href":"https://api.github.com/repos/benoitc/gunicorn/pulls/1511/comments"},"review_comment":{"href":"https://api.github.com/repos/benoitc/gunicorn/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/benoitc/gunicorn/pulls/1511/commits"},"statuses":{"href":"https://api.github.com/repos/benoitc/gunicorn/statuses/ba151de61eabb55ed4727f6f3a3fce35a78efc6c"}},"author_association":"NONE"}}
{"actor":{"display_login":"benoitc"}}