Skip to content

Commit

Permalink
Add a UA string to river script so that NEILB's web server doesn't re…
Browse files Browse the repository at this point in the history
…ject it.
  • Loading branch information
oalders committed May 6, 2016
1 parent da9118c commit de142a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/MetaCPAN/Script/River.pm
Expand Up @@ -5,7 +5,7 @@ use namespace::autoclean;

use JSON::MaybeXS qw( decode_json );
use Log::Contextual qw( :log :dlog );
use LWP::UserAgent;
use LWP::UserAgent ();
use MetaCPAN::Types qw( ArrayRef Str Uri);

with 'MetaCPAN::Role::Script', 'MooseX::Getopt';
Expand All @@ -21,7 +21,7 @@ has river_url => (
has _ua => (
is => 'ro',
isa => 'LWP::UserAgent',
default => sub { LWP::UserAgent->new },
default => sub { LWP::UserAgent->new( agent => 'MetaCPAN' ) },
);

sub run {
Expand Down

0 comments on commit de142a2

Please sign in to comment.