[open-ils-commits] [GIT] Evergreen ILS branch master updated. f0572477da5b57f64dbf16d03578d853ffe932a7

Evergreen Git git at git.evergreen-ils.org
Mon Apr 8 14:24:22 EDT 2019


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".

The branch, master has been updated
       via  f0572477da5b57f64dbf16d03578d853ffe932a7 (commit)
      from  12f53dda91af8cda5f19f2cec00716768c6413c6 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit f0572477da5b57f64dbf16d03578d853ffe932a7
Author: Dan Scott <dscott at laurentian.ca>
Date:   Sun May 13 10:59:24 2018 -0400

    LP#1666987: Include a user-agent to build the relator map
    
    loc.gov started using Cloudflare protection to block HTTP access from default
    user agents, so identify ourselves as an Evergreen user agent to restore our
    access.
    
    Long term we should evolve to using the linked open data access method
    via id.loc.gov but let's get this working first.
    
    Signed-off-by: Dan Scott <dscott at laurentian.ca>
    Signed-off-by: Dan Wells <dbw2 at calvin.edu>

diff --git a/build/tools/relator_map b/build/tools/relator_map
index 742348248f..dc949b1e33 100755
--- a/build/tools/relator_map
+++ b/build/tools/relator_map
@@ -4,9 +4,12 @@ use warnings;
 
 use XML::LibXML;
 use XML::LibXML::Reader;
-use LWP::Simple;
+use LWP::Simple qw($ua get);
 use Data::Dumper;
 
+# loc.gov blocks basic user agents now
+$ua->agent('Evergreen/3.1');
+
 my %relator;
 my $code = 0;
 my $fullname = 0;

-----------------------------------------------------------------------

Summary of changes:
 build/tools/relator_map | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list