Skip to content

Commit

Permalink
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 committed Aug 10, 2022
1 parent eeaa5cc commit a687fcc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cgi/altmetric
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 a687fcc

Please sign in to comment.