{"action":"opened","issue":{"url":"https://api.github.com/repos/excon/excon/issues/512","labels_url":"https://api.github.com/repos/excon/excon/issues/512/labels{/name}","comments_url":"https://api.github.com/repos/excon/excon/issues/512/comments","events_url":"https://api.github.com/repos/excon/excon/issues/512/events","html_url":"https://github.com/excon/excon/issues/512","id":86486364,"number":512,"title":"An empty proxy environment variable disables excon","user":{"login":"amos-stan","id":10665359,"avatar_url":"https://avatars.githubusercontent.com/u/10665359?v=3","gravatar_id":"","url":"https://api.github.com/users/amos-stan","html_url":"https://github.com/amos-stan","followers_url":"https://api.github.com/users/amos-stan/followers","following_url":"https://api.github.com/users/amos-stan/following{/other_user}","gists_url":"https://api.github.com/users/amos-stan/gists{/gist_id}","starred_url":"https://api.github.com/users/amos-stan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amos-stan/subscriptions","organizations_url":"https://api.github.com/users/amos-stan/orgs","repos_url":"https://api.github.com/users/amos-stan/repos","events_url":"https://api.github.com/users/amos-stan/events{/privacy}","received_events_url":"https://api.github.com/users/amos-stan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-09T07:19:57Z","updated_at":"2015-06-09T07:19:57Z","closed_at":null,"body":"I got into a situation where set but empty http_proxy environment variable caused excon to fail.\r\n\r\nHow I got this?\r\nWe have empty http_proxy (and all combinations) environment variables in our TeamCity root project.\r\nWhen I tried to use vagrant-aws from inside a teamcity job it failed, until I unset the environment variables.\r\n\r\nI suggest that the code around https://github.com/excon/excon/blob/master/lib/excon/connection.rb#L414 will treat the environment variables as missing if they are empty.\r\n\r\nI'll try to do this myself but I'm not quiet familiar with the tools used in the module so it might take time."}}