{"action":"created","issue":{"url":"https://api.github.com/repos/libwww-perl/http-message/issues/24","labels_url":"https://api.github.com/repos/libwww-perl/http-message/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/libwww-perl/http-message/issues/24/comments","events_url":"https://api.github.com/repos/libwww-perl/http-message/issues/24/events","html_url":"https://github.com/libwww-perl/http-message/pull/24","id":97091410,"number":24,"title":"If an object is passed to HTTP::Request, it must provide a canonical()","user":{"login":"oalders","id":96205,"avatar_url":"https://avatars.githubusercontent.com/u/96205?v=3","gravatar_id":"","url":"https://api.github.com/users/oalders","html_url":"https://github.com/oalders","followers_url":"https://api.github.com/users/oalders/followers","following_url":"https://api.github.com/users/oalders/following{/other_user}","gists_url":"https://api.github.com/users/oalders/gists{/gist_id}","starred_url":"https://api.github.com/users/oalders/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oalders/subscriptions","organizations_url":"https://api.github.com/users/oalders/orgs","repos_url":"https://api.github.com/users/oalders/repos","events_url":"https://api.github.com/users/oalders/events{/privacy}","received_events_url":"https://api.github.com/users/oalders/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-24T16:52:54Z","updated_at":"2015-07-24T18:51:09Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/libwww-perl/http-message/pulls/24","html_url":"https://github.com/libwww-perl/http-message/pull/24","diff_url":"https://github.com/libwww-perl/http-message/pull/24.diff","patch_url":"https://github.com/libwww-perl/http-message/pull/24.patch"},"body":"I ran into this issue today when I tried to GET a Mojo::URL object.  No\r\nerror was thrown until HTTP::Request tried to call the canonical()\r\nmethod on the object.  So, just checking if an object provides a\r\nscheme() method is not enough.\r\n\r\nIt's quite likely it should check for other methods as well, but this does fix this one particular case."},"comment":{"url":"https://api.github.com/repos/libwww-perl/http-message/issues/comments/124626264","html_url":"https://github.com/libwww-perl/http-message/pull/24#issuecomment-124626264","issue_url":"https://api.github.com/repos/libwww-perl/http-message/issues/24","id":124626264,"user":{"login":"oalders","id":96205,"avatar_url":"https://avatars.githubusercontent.com/u/96205?v=3","gravatar_id":"","url":"https://api.github.com/users/oalders","html_url":"https://github.com/oalders","followers_url":"https://api.github.com/users/oalders/followers","following_url":"https://api.github.com/users/oalders/following{/other_user}","gists_url":"https://api.github.com/users/oalders/gists{/gist_id}","starred_url":"https://api.github.com/users/oalders/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oalders/subscriptions","organizations_url":"https://api.github.com/users/oalders/orgs","repos_url":"https://api.github.com/users/oalders/repos","events_url":"https://api.github.com/users/oalders/events{/privacy}","received_events_url":"https://api.github.com/users/oalders/received_events","type":"User","site_admin":false},"created_at":"2015-07-24T18:51:09Z","updated_at":"2015-07-24T18:51:09Z","body":"The accompanying test adds Test::Fatal as a test requirement.  If that's an issue, I can clean up the test as desired.  It's mostly a demonstration of the problem."}}