{"action":"opened","issue":{"url":"https://api.github.com/repos/restify/clients/issues/21","labels_url":"https://api.github.com/repos/restify/clients/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/restify/clients/issues/21/comments","events_url":"https://api.github.com/repos/restify/clients/issues/21/events","html_url":"https://github.com/restify/clients/issues/21","id":120288374,"number":21,"title":"trim whitespaces in URLs","user":{"login":"DonutEspresso","id":2381315,"avatar_url":"https://avatars.githubusercontent.com/u/2381315?v=3","gravatar_id":"","url":"https://api.github.com/users/DonutEspresso","html_url":"https://github.com/DonutEspresso","followers_url":"https://api.github.com/users/DonutEspresso/followers","following_url":"https://api.github.com/users/DonutEspresso/following{/other_user}","gists_url":"https://api.github.com/users/DonutEspresso/gists{/gist_id}","starred_url":"https://api.github.com/users/DonutEspresso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DonutEspresso/subscriptions","organizations_url":"https://api.github.com/users/DonutEspresso/orgs","repos_url":"https://api.github.com/users/DonutEspresso/repos","events_url":"https://api.github.com/users/DonutEspresso/events{/privacy}","received_events_url":"https://api.github.com/users/DonutEspresso/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-03T22:41:48Z","updated_at":"2015-12-03T22:41:48Z","closed_at":null,"body":"If there's a whitespace in the URL, parsing of the host and port numbers can fail and cause requests to default to 80. Whitespaces should probably be trimmed from the `url` argument when the client is created."}}