From 3aeefaa75d026a6d4978ab83db24becca859510c Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Sat, 29 Jul 2023 08:09:57 +0100 Subject: blobs/download: set common user agent string Make it look like a normal web browser, downloading files. Some HTTP servers might block Wget unless this is done. Signed-off-by: Leah Rowe --- resources/scripts/update/blobs/download | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'resources/scripts') diff --git a/resources/scripts/update/blobs/download b/resources/scripts/update/blobs/download index 041a2362..af4e7e7a 100755 --- a/resources/scripts/update/blobs/download +++ b/resources/scripts/update/blobs/download @@ -5,6 +5,8 @@ # SPDX-FileCopyrightText: 2023 Leah Rowe # SPDX-License-Identifier: GPL-3.0-only +agent="Mozilla/5.0 (Windows NT 10.0; rv:91.0) Gecko/20100101" + ec_url="" ec_url_bkup="" ec_hash="" @@ -447,7 +449,8 @@ fetch_update() mkdir -p ${blobdir}/cache vendor_checksum ${dlsum} || \ - wget ${dl} -O ${dl_path} || wget ${dl_bkup} -O ${dl_path} + wget -U "${agent}" ${dl} -O ${dl_path} \ + || wget -U "${agent}" ${dl_bkup} -O ${dl_path} vendor_checksum ${dlsum} || fail \ "Cannot guarantee intergity of vendor update for: ${board}" -- cgit v1.2.1