Subject: | Test fails with connection refused |
Test 2 fails with:
Fetching
http://maps.google.com/maps/api/geocode/json?sensor=false&address=Berliner+Stra%C3%9Fe%2C+Berlin%2C+Germany
failed: 500 Can't connect to maps.google.com:80 (connect: Connection
refused) at t/geocode.t line 16
when behind a firewall due to code not using a proxy.
The fix is to add:
$ua->env_proxy;
to the geocode subroutine after:
my $ua = $self->ua;