{"action":"opened","issue":{"url":"https://api.github.com/repos/nette/http/issues/158","repository_url":"https://api.github.com/repos/nette/http","labels_url":"https://api.github.com/repos/nette/http/issues/158/labels{/name}","comments_url":"https://api.github.com/repos/nette/http/issues/158/comments","events_url":"https://api.github.com/repos/nette/http/issues/158/events","html_url":"https://github.com/nette/http/issues/158","id":462144612,"node_id":"MDU6SXNzdWU0NjIxNDQ2MTI=","number":158,"title":"Url::getHostUrl() returns scheme only when host is '0'","user":{"login":"spaze","id":1966648,"node_id":"MDQ6VXNlcjE5NjY2NDg=","avatar_url":"https://avatars1.githubusercontent.com/u/1966648?v=4","gravatar_id":"","url":"https://api.github.com/users/spaze","html_url":"https://github.com/spaze","followers_url":"https://api.github.com/users/spaze/followers","following_url":"https://api.github.com/users/spaze/following{/other_user}","gists_url":"https://api.github.com/users/spaze/gists{/gist_id}","starred_url":"https://api.github.com/users/spaze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spaze/subscriptions","organizations_url":"https://api.github.com/users/spaze/orgs","repos_url":"https://api.github.com/users/spaze/repos","events_url":"https://api.github.com/users/spaze/events{/privacy}","received_events_url":"https://api.github.com/users/spaze/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-06-28T17:52:21Z","updated_at":"2019-06-28T17:52:21Z","closed_at":null,"author_association":"NONE","body":"Version: master (3.0.1)\r\n\r\n### Bug Description\r\n`$url->getHostUrl()` returns just scheme when the host is `0`.\r\n```\r\n$url = new Url('https://0/0');\r\n$url->getHostUrl();  // https:\r\n```\r\n\r\n### Steps To Reproduce\r\nThis is a failing test\r\n```\r\n$url = new Url('https://0/0');\r\nAssert::same('https://0', $url->getHostUrl());\r\nAssert::same('https://0/0', $url->absoluteUrl());\r\n```\r\n\r\n### Expected Behavior\r\nThe host (`0`) should be included.\r\n\r\n### Possible Solution\r\nI'll send a PR in a second.\r\n"}}
{"actor":{"display_login":"spaze"}}