mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 08:08:50 -05:00
Make use of proxy vars if set.
Posted to the list by Quanah Gibson-Mount [quanah zimbra.com].
This commit is contained in:
parent
e02c90dc19
commit
5eda4bf726
@ -81,6 +81,7 @@ unless ($opt_n and -e $txt) {
|
|||||||
print "Downloading '$txt' ...\n" if (!$opt_q);
|
print "Downloading '$txt' ...\n" if (!$opt_q);
|
||||||
|
|
||||||
my $ua = new LWP::UserAgent(agent => "$0/$version");
|
my $ua = new LWP::UserAgent(agent => "$0/$version");
|
||||||
|
$ua->env_proxy();
|
||||||
$resp = $ua->mirror($url, $txt);
|
$resp = $ua->mirror($url, $txt);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user