{"action":"created","issue":{"url":"https://api.github.com/repos/zendframework/zend-diactoros/issues/93","labels_url":"https://api.github.com/repos/zendframework/zend-diactoros/issues/93/labels{/name}","comments_url":"https://api.github.com/repos/zendframework/zend-diactoros/issues/93/comments","events_url":"https://api.github.com/repos/zendframework/zend-diactoros/issues/93/events","html_url":"https://github.com/zendframework/zend-diactoros/issues/93","id":110133631,"number":93,"title":"withFragment() deviates from PSR-7","user":{"login":"DASPRiD","id":233300,"avatar_url":"https://avatars.githubusercontent.com/u/233300?v=3","gravatar_id":"","url":"https://api.github.com/users/DASPRiD","html_url":"https://github.com/DASPRiD","followers_url":"https://api.github.com/users/DASPRiD/followers","following_url":"https://api.github.com/users/DASPRiD/following{/other_user}","gists_url":"https://api.github.com/users/DASPRiD/gists{/gist_id}","starred_url":"https://api.github.com/users/DASPRiD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DASPRiD/subscriptions","organizations_url":"https://api.github.com/users/DASPRiD/orgs","repos_url":"https://api.github.com/users/DASPRiD/repos","events_url":"https://api.github.com/users/DASPRiD/events{/privacy}","received_events_url":"https://api.github.com/users/DASPRiD/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-10-07T01:11:47Z","updated_at":"2015-11-07T02:37:36Z","closed_at":null,"body":"Looking at the following code-part:\r\n\r\nhttps://github.com/zendframework/zend-diactoros/blob/6eb97f29abfcf14358da60f36917904315489c61/src/Uri.php#L627-L629\r\n\r\nPSR-7 does not say that a leading hash must be removed from the fragment. I'm not quite sure, but theoretically, an encoded leading hash sign is valid in a fragment?"},"comment":{"url":"https://api.github.com/repos/zendframework/zend-diactoros/issues/comments/154601591","html_url":"https://github.com/zendframework/zend-diactoros/issues/93#issuecomment-154601591","issue_url":"https://api.github.com/repos/zendframework/zend-diactoros/issues/93","id":154601591,"user":{"login":"DASPRiD","id":233300,"avatar_url":"https://avatars.githubusercontent.com/u/233300?v=3","gravatar_id":"","url":"https://api.github.com/users/DASPRiD","html_url":"https://github.com/DASPRiD","followers_url":"https://api.github.com/users/DASPRiD/followers","following_url":"https://api.github.com/users/DASPRiD/following{/other_user}","gists_url":"https://api.github.com/users/DASPRiD/gists{/gist_id}","starred_url":"https://api.github.com/users/DASPRiD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DASPRiD/subscriptions","organizations_url":"https://api.github.com/users/DASPRiD/orgs","repos_url":"https://api.github.com/users/DASPRiD/repos","events_url":"https://api.github.com/users/DASPRiD/events{/privacy}","received_events_url":"https://api.github.com/users/DASPRiD/received_events","type":"User","site_admin":false},"created_at":"2015-11-07T02:37:36Z","updated_at":"2015-11-07T02:37:36Z","body":"To clarify, When doing this:\r\n\r\n```\r\n$uri = new Uri('http://example.com/');\r\necho $uri->withFragment('#test');\r\n```\r\n\r\nThis should output:\r\n`http://example.com/#%23test`"}}