Make all LWP user agents use env_proxy.
This commit is contained in:
parent
153b13207f
commit
bebf3f159c
5 changed files with 6 additions and 0 deletions
|
|
@ -215,6 +215,7 @@ sub setByHTTP {
|
|||
my $url = shift;
|
||||
my $ttl = shift;
|
||||
my $userAgent = new LWP::UserAgent;
|
||||
$userAgent->env_proxy;
|
||||
$userAgent->agent("WebGUI/".$WebGUI::VERSION);
|
||||
$userAgent->timeout(30);
|
||||
my $header = new HTTP::Headers;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue