Skip to content

Commit

Permalink
Merge pull request #12 from eprintsug/iss-7
Browse files Browse the repository at this point in the history
Change default user agent to prevent 403 responses from Altmetric API
  • Loading branch information
jesusbagpuss authored Dec 19, 2022
2 parents 518d144 + a687fcc commit a9cb2a2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cgi/altmetric
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ my $alt_type = $repo->param( 'id_type' ) or exit;
my $alt_id = $repo->param( 'id' ) or exit;

my $ua = LWP::UserAgent->new();
$ua->agent( 'eprints/' . EPrints->human_version );

if( EPrints::Utils::is_set( $ENV{HTTP_proxy} ) )
{
Expand Down

0 comments on commit a9cb2a2

Please sign in to comment.