1
0
mirror of https://github.com/c-kr/check_json.git synced 2024-11-23 10:53:47 +01:00

Merge pull request #14 from davidmat/master

Enable proxy support
This commit is contained in:
Christopher Kreft 2015-07-14 10:09:36 +02:00
commit c89b04a799

View File

@ -100,6 +100,7 @@ if ($np->opts->verbose) { (print Dumper ($np))};
## GET URL
my $ua = LWP::UserAgent->new;
$ua->env_proxy;
$ua->agent('check_json/0.5');
$ua->default_header('Accept' => 'application/json');
$ua->protocols_allowed( [ 'http', 'https'] );