Subject: | Not respecting proxy environment variables |
Attached is a patch to enable the use of proxy environment variables within LWP::UserAgent.
Subject: | proxy.patch |
--- WebService-Google-Language-0.01.orig/lib/WebService/Google/Language.pm 2008-05-19 17:24:57.000000000 +0200
+++ WebService-Google-Language-0.01/lib/WebService/Google/Language.pm 2008-05-19 17:25:13.000000000 +0200
@@ -40,6 +40,7 @@
$conf{'agent'} = __PACKAGE__ . ' ' . $VERSION unless defined $conf{'agent'};
my $ua = LWP::UserAgent->new(%conf);
$ua->default_header('referer' => $referer);
+ $ua->env_proxy;
$self->{'ua'} = $ua;
bless $self, $class;