From ff10253cefe9cd7119a20e3b77fc40f2a6b82d36 Mon Sep 17 00:00:00 2001 From: Nick Sweeting Date: Mon, 10 Sep 2018 22:31:19 -0400 Subject: [PATCH] fix user agent breaking all wgets --- archiver/archive_methods.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/archiver/archive_methods.py b/archiver/archive_methods.py index 49ee32b5..ea467d77 100644 --- a/archiver/archive_methods.py +++ b/archiver/archive_methods.py @@ -196,7 +196,7 @@ def fetch_wget(link_dir, link, requisites=FETCH_WGET_REQUISITES, timeout=TIMEOUT # WGET CLI Docs: https://www.gnu.org/software/wget/manual/wget.html *'wget -N -E -np -x -H -k -K -S --restrict-file-names=unix'.split(' '), *(('-p',) if FETCH_WGET_REQUISITES else ()), - *(('--user-agent="{}"'.format(WGET_USER_AGENT),) if WGET_USER_AGENT else ()), + *(('--user-agent={}'.format(WGET_USER_AGENT),) if WGET_USER_AGENT else ()), *((() if CHECK_SSL_VALIDITY else ('--no-check-certificate',))), link['url'], ]