{"action":"opened","number":63,"pull_request":{"url":"https://api.github.com/repos/mirage/ocaml-uri/pulls/63","id":29344767,"html_url":"https://github.com/mirage/ocaml-uri/pull/63","diff_url":"https://github.com/mirage/ocaml-uri/pull/63.diff","patch_url":"https://github.com/mirage/ocaml-uri/pull/63.patch","issue_url":"https://api.github.com/repos/mirage/ocaml-uri/issues/63","number":63,"state":"open","locked":false,"title":"Make `Uri.with_port` not set hostname if it is trying to unset a port","user":{"login":"avsm","id":53164,"avatar_url":"https://avatars.githubusercontent.com/u/53164?v=3","gravatar_id":"","url":"https://api.github.com/users/avsm","html_url":"https://github.com/avsm","followers_url":"https://api.github.com/users/avsm/followers","following_url":"https://api.github.com/users/avsm/following{/other_user}","gists_url":"https://api.github.com/users/avsm/gists{/gist_id}","starred_url":"https://api.github.com/users/avsm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avsm/subscriptions","organizations_url":"https://api.github.com/users/avsm/orgs","repos_url":"https://api.github.com/users/avsm/repos","events_url":"https://api.github.com/users/avsm/events{/privacy}","received_events_url":"https://api.github.com/users/avsm/received_events","type":"User","site_admin":false},"body":"This makes the following two statements identical:\r\n\r\n    Uri.with_port (Uri.of_string \"/\") None\r\n    Uri.of_string \"/\"","created_at":"2015-02-16T00:52:51Z","updated_at":"2015-02-16T00:52:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mirage/ocaml-uri/pulls/63/commits","review_comments_url":"https://api.github.com/repos/mirage/ocaml-uri/pulls/63/comments","review_comment_url":"https://api.github.com/repos/mirage/ocaml-uri/pulls/comments/{number}","comments_url":"https://api.github.com/repos/mirage/ocaml-uri/issues/63/comments","statuses_url":"https://api.github.com/repos/mirage/ocaml-uri/statuses/c834dbe735583f0eb9a9b7f19eb5810075e4cc9e","head":{"label":"avsm:with-port","ref":"with-port","sha":"c834dbe735583f0eb9a9b7f19eb5810075e4cc9e","user":{"login":"avsm","id":53164,"avatar_url":"https://avatars.githubusercontent.com/u/53164?v=3","gravatar_id":"","url":"https://api.github.com/users/avsm","html_url":"https://github.com/avsm","followers_url":"https://api.github.com/users/avsm/followers","following_url":"https://api.github.com/users/avsm/following{/other_user}","gists_url":"https://api.github.com/users/avsm/gists{/gist_id}","starred_url":"https://api.github.com/users/avsm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avsm/subscriptions","organizations_url":"https://api.github.com/users/avsm/orgs","repos_url":"https://api.github.com/users/avsm/repos","events_url":"https://api.github.com/users/avsm/events{/privacy}","received_events_url":"https://api.github.com/users/avsm/received_events","type":"User","site_admin":false},"repo":{"id":18947821,"name":"ocaml-uri","full_name":"avsm/ocaml-uri","owner":{"login":"avsm","id":53164,"avatar_url":"https://avatars.githubusercontent.com/u/53164?v=3","gravatar_id":"","url":"https://api.github.com/users/avsm","html_url":"https://github.com/avsm","followers_url":"https://api.github.com/users/avsm/followers","following_url":"https://api.github.com/users/avsm/following{/other_user}","gists_url":"https://api.github.com/users/avsm/gists{/gist_id}","starred_url":"https://api.github.com/users/avsm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avsm/subscriptions","organizations_url":"https://api.github.com/users/avsm/orgs","repos_url":"https://api.github.com/users/avsm/repos","events_url":"https://api.github.com/users/avsm/events{/privacy}","received_events_url":"https://api.github.com/users/avsm/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/avsm/ocaml-uri","description":"RFC3986 URI parsing library for OCaml","fork":true,"url":"https://api.github.com/repos/avsm/ocaml-uri","forks_url":"https://api.github.com/repos/avsm/ocaml-uri/forks","keys_url":"https://api.github.com/repos/avsm/ocaml-uri/keys{/key_id}","collaborators_url":"https://api.github.com/repos/avsm/ocaml-uri/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/avsm/ocaml-uri/teams","hooks_url":"https://api.github.com/repos/avsm/ocaml-uri/hooks","issue_events_url":"https://api.github.com/repos/avsm/ocaml-uri/issues/events{/number}","events_url":"https://api.github.com/repos/avsm/ocaml-uri/events","assignees_url":"https://api.github.com/repos/avsm/ocaml-uri/assignees{/user}","branches_url":"https://api.github.com/repos/avsm/ocaml-uri/branches{/branch}","tags_url":"https://api.github.com/repos/avsm/ocaml-uri/tags","blobs_url":"https://api.github.com/repos/avsm/ocaml-uri/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/avsm/ocaml-uri/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/avsm/ocaml-uri/git/refs{/sha}","trees_url":"https://api.github.com/repos/avsm/ocaml-uri/git/trees{/sha}","statuses_url":"https://api.github.com/repos/avsm/ocaml-uri/statuses/{sha}","languages_url":"https://api.github.com/repos/avsm/ocaml-uri/languages","stargazers_url":"https://api.github.com/repos/avsm/ocaml-uri/stargazers","contributors_url":"https://api.github.com/repos/avsm/ocaml-uri/contributors","subscribers_url":"https://api.github.com/repos/avsm/ocaml-uri/subscribers","subscription_url":"https://api.github.com/repos/avsm/ocaml-uri/subscription","commits_url":"https://api.github.com/repos/avsm/ocaml-uri/commits{/sha}","git_commits_url":"https://api.github.com/repos/avsm/ocaml-uri/git/commits{/sha}","comments_url":"https://api.github.com/repos/avsm/ocaml-uri/comments{/number}","issue_comment_url":"https://api.github.com/repos/avsm/ocaml-uri/issues/comments/{number}","contents_url":"https://api.github.com/repos/avsm/ocaml-uri/contents/{+path}","compare_url":"https://api.github.com/repos/avsm/ocaml-uri/compare/{base}...{head}","merges_url":"https://api.github.com/repos/avsm/ocaml-uri/merges","archive_url":"https://api.github.com/repos/avsm/ocaml-uri/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/avsm/ocaml-uri/downloads","issues_url":"https://api.github.com/repos/avsm/ocaml-uri/issues{/number}","pulls_url":"https://api.github.com/repos/avsm/ocaml-uri/pulls{/number}","milestones_url":"https://api.github.com/repos/avsm/ocaml-uri/milestones{/number}","notifications_url":"https://api.github.com/repos/avsm/ocaml-uri/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/avsm/ocaml-uri/labels{/name}","releases_url":"https://api.github.com/repos/avsm/ocaml-uri/releases{/id}","created_at":"2014-04-19T18:26:54Z","updated_at":"2014-07-05T21:44:23Z","pushed_at":"2015-02-16T00:52:43Z","git_url":"git://github.com/avsm/ocaml-uri.git","ssh_url":"git@github.com:avsm/ocaml-uri.git","clone_url":"https://github.com/avsm/ocaml-uri.git","svn_url":"https://github.com/avsm/ocaml-uri","homepage":"","size":834,"stargazers_count":0,"watchers_count":0,"language":"OCaml","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":"mirage:master","ref":"master","sha":"f3e2432dc48ee066766b7e67e654d223d56b575e","user":{"login":"mirage","id":131943,"avatar_url":"https://avatars.githubusercontent.com/u/131943?v=3","gravatar_id":"","url":"https://api.github.com/users/mirage","html_url":"https://github.com/mirage","followers_url":"https://api.github.com/users/mirage/followers","following_url":"https://api.github.com/users/mirage/following{/other_user}","gists_url":"https://api.github.com/users/mirage/gists{/gist_id}","starred_url":"https://api.github.com/users/mirage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mirage/subscriptions","organizations_url":"https://api.github.com/users/mirage/orgs","repos_url":"https://api.github.com/users/mirage/repos","events_url":"https://api.github.com/users/mirage/events{/privacy}","received_events_url":"https://api.github.com/users/mirage/received_events","type":"Organization","site_admin":false},"repo":{"id":3122744,"name":"ocaml-uri","full_name":"mirage/ocaml-uri","owner":{"login":"mirage","id":131943,"avatar_url":"https://avatars.githubusercontent.com/u/131943?v=3","gravatar_id":"","url":"https://api.github.com/users/mirage","html_url":"https://github.com/mirage","followers_url":"https://api.github.com/users/mirage/followers","following_url":"https://api.github.com/users/mirage/following{/other_user}","gists_url":"https://api.github.com/users/mirage/gists{/gist_id}","starred_url":"https://api.github.com/users/mirage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mirage/subscriptions","organizations_url":"https://api.github.com/users/mirage/orgs","repos_url":"https://api.github.com/users/mirage/repos","events_url":"https://api.github.com/users/mirage/events{/privacy}","received_events_url":"https://api.github.com/users/mirage/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mirage/ocaml-uri","description":"RFC3986 URI parsing library for OCaml","fork":false,"url":"https://api.github.com/repos/mirage/ocaml-uri","forks_url":"https://api.github.com/repos/mirage/ocaml-uri/forks","keys_url":"https://api.github.com/repos/mirage/ocaml-uri/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mirage/ocaml-uri/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mirage/ocaml-uri/teams","hooks_url":"https://api.github.com/repos/mirage/ocaml-uri/hooks","issue_events_url":"https://api.github.com/repos/mirage/ocaml-uri/issues/events{/number}","events_url":"https://api.github.com/repos/mirage/ocaml-uri/events","assignees_url":"https://api.github.com/repos/mirage/ocaml-uri/assignees{/user}","branches_url":"https://api.github.com/repos/mirage/ocaml-uri/branches{/branch}","tags_url":"https://api.github.com/repos/mirage/ocaml-uri/tags","blobs_url":"https://api.github.com/repos/mirage/ocaml-uri/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mirage/ocaml-uri/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mirage/ocaml-uri/git/refs{/sha}","trees_url":"https://api.github.com/repos/mirage/ocaml-uri/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mirage/ocaml-uri/statuses/{sha}","languages_url":"https://api.github.com/repos/mirage/ocaml-uri/languages","stargazers_url":"https://api.github.com/repos/mirage/ocaml-uri/stargazers","contributors_url":"https://api.github.com/repos/mirage/ocaml-uri/contributors","subscribers_url":"https://api.github.com/repos/mirage/ocaml-uri/subscribers","subscription_url":"https://api.github.com/repos/mirage/ocaml-uri/subscription","commits_url":"https://api.github.com/repos/mirage/ocaml-uri/commits{/sha}","git_commits_url":"https://api.github.com/repos/mirage/ocaml-uri/git/commits{/sha}","comments_url":"https://api.github.com/repos/mirage/ocaml-uri/comments{/number}","issue_comment_url":"https://api.github.com/repos/mirage/ocaml-uri/issues/comments/{number}","contents_url":"https://api.github.com/repos/mirage/ocaml-uri/contents/{+path}","compare_url":"https://api.github.com/repos/mirage/ocaml-uri/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mirage/ocaml-uri/merges","archive_url":"https://api.github.com/repos/mirage/ocaml-uri/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mirage/ocaml-uri/downloads","issues_url":"https://api.github.com/repos/mirage/ocaml-uri/issues{/number}","pulls_url":"https://api.github.com/repos/mirage/ocaml-uri/pulls{/number}","milestones_url":"https://api.github.com/repos/mirage/ocaml-uri/milestones{/number}","notifications_url":"https://api.github.com/repos/mirage/ocaml-uri/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mirage/ocaml-uri/labels{/name}","releases_url":"https://api.github.com/repos/mirage/ocaml-uri/releases{/id}","created_at":"2012-01-07T03:15:38Z","updated_at":"2015-02-14T23:22:52Z","pushed_at":"2014-12-17T02:03:18Z","git_url":"git://github.com/mirage/ocaml-uri.git","ssh_url":"git@github.com:mirage/ocaml-uri.git","clone_url":"https://github.com/mirage/ocaml-uri.git","svn_url":"https://github.com/mirage/ocaml-uri","homepage":"","size":1120,"stargazers_count":26,"watchers_count":26,"language":"OCaml","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":18,"mirror_url":null,"open_issues_count":15,"forks":18,"open_issues":15,"watchers":26,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mirage/ocaml-uri/pulls/63"},"html":{"href":"https://github.com/mirage/ocaml-uri/pull/63"},"issue":{"href":"https://api.github.com/repos/mirage/ocaml-uri/issues/63"},"comments":{"href":"https://api.github.com/repos/mirage/ocaml-uri/issues/63/comments"},"review_comments":{"href":"https://api.github.com/repos/mirage/ocaml-uri/pulls/63/comments"},"review_comment":{"href":"https://api.github.com/repos/mirage/ocaml-uri/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/mirage/ocaml-uri/pulls/63/commits"},"statuses":{"href":"https://api.github.com/repos/mirage/ocaml-uri/statuses/c834dbe735583f0eb9a9b7f19eb5810075e4cc9e"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":7,"deletions":2,"changed_files":2}}