Skip to content

Commit de142a2

Browse files
committed
Add a UA string to river script so that NEILB's web server doesn't reject it.
1 parent da9118c commit de142a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/MetaCPAN/Script/River.pm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use namespace::autoclean;
55

66
use JSON::MaybeXS qw( decode_json );
77
use Log::Contextual qw( :log :dlog );
8-
use LWP::UserAgent;
8+
use LWP::UserAgent ();
99
use MetaCPAN::Types qw( ArrayRef Str Uri);
1010

1111
with 'MetaCPAN::Role::Script', 'MooseX::Getopt';
@@ -21,7 +21,7 @@ has river_url => (
2121
has _ua => (
2222
is => 'ro',
2323
isa => 'LWP::UserAgent',
24-
default => sub { LWP::UserAgent->new },
24+
default => sub { LWP::UserAgent->new( agent => 'MetaCPAN' ) },
2525
);
2626

2727
sub run {

0 commit comments

Comments
 (0)