From ee79a48e8e01e1bef008654a59b7760bd8cec266 Mon Sep 17 00:00:00 2001 From: Benjamin Admin Date: Sat, 28 Feb 2026 09:33:06 +0100 Subject: [PATCH] fix: add User-Agent header to PDF downloads Some sites (ENISA) reject requests without User-Agent header. Co-Authored-By: Claude Opus 4.6 --- scripts/ingest-industry-compliance.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/ingest-industry-compliance.sh b/scripts/ingest-industry-compliance.sh index d720d9f..18fedcc 100755 --- a/scripts/ingest-industry-compliance.sh +++ b/scripts/ingest-industry-compliance.sh @@ -124,7 +124,7 @@ download_pdf() { fi log "Downloading: $(basename "$target")" - curl $CURL_OPTS -L "$url" -o "$target" 2>/dev/null || { + curl $CURL_OPTS -L -A 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7)' "$url" -o "$target" 2>/dev/null || { warn "Download failed: $url" return 1 }