Skip to content
Permalink
Browse files
Change default user agent to prevent 403 responses from Altmetric API
  • Loading branch information
jesusbagpuss committed Aug 10, 2022
1 parent eeaa5cc commit a687fcce74a06312e02af25f275492079e5dc6ed
Showing 1 changed file with 1 addition and 0 deletions.
@@ -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} ) )
{

0 comments on commit a687fcc

Please sign in to comment.