aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xscripts/deliver_file2disk.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/deliver_file2disk.py b/scripts/deliver_file2disk.py
index f708b34..f54ecb3 100755
--- a/scripts/deliver_file2disk.py
+++ b/scripts/deliver_file2disk.py
@@ -78,7 +78,9 @@ class DeliverFatcatDisk:
self.disk_prefix = kwargs.get('disk_prefix', 'pdf/')
self.disk_suffix = kwargs.get('disk_suffix', '.pdf')
self.session = requests_retry_session()
-
+ self.session.headers.update({
+ 'User-Agent': 'Mozilla/5.0 fatcat.DeliverFatcatDisk',
+ })
def run(self, release_json_file):
sys.stderr.write("Ensuring all 256 base directories exist...\n")