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

Merge pull request #1 from denisu/master

Add Accept Header (application/json)
This commit is contained in:
Christopher Kreft 2013-06-26 05:33:55 -07:00
commit 787ade934c

View File

@ -56,6 +56,7 @@ $np->getopts;
my $ua = LWP::UserAgent->new;
$ua->agent('check_json/0.1');
$ua->default_header('Accept' => 'application/json');
$ua->protocols_allowed( [ 'http', 'https'] );
$ua->parse_head(0);
$ua->timeout($np->opts->timeout);