Subject: | Net-Google-SafeBrowsing-UpdateRequest does not use proxy |
Date: | Mon, 17 Aug 2009 19:07:10 -1000 |
To: | bug-Net-Google-SafeBrowsing-UpdateRequest [...] rt.cpan.org |
From: | DTakemori [...] thdfsg.com |
the CPAN module Net-Google-SafeBrowsing-UpdateRequest does not
have a way to retrieve the updates via a proxy.
this patch uses LWP's env_proxy to grab the environment's proxy settings
--- UpdateRequest.pm-orig 2009-08-17 18:47:07.000000000 -1000
+++ UpdateRequest.pm 2009-08-17 18:46:58.000000000 -1000
@@ -138,6 +138,7 @@
my Net::Google::SafeBrowsing::UpdateRequest $self = shift;
my ($uri) = @_;
my $ua = LWP::UserAgent->new;
+ $ua->env_proxy;
$ua->timeout(60);
$self->{db}->{$LASTATTEMPT} = time();
my $resp = $ua->get($uri);
Dean Takemori
Systems Support Supervisor
TD Food Group
dtakemori@thdfsg.com