From a93e2b606d4941191ce207edcc42908ac054f41b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Krawczyk?= Date: Sun, 25 Oct 2015 22:33:49 +0000 Subject: [PATCH] make Curl follow redirects (-L) Submitted by John --- blacklist.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blacklist.sh b/blacklist.sh index d88280d..e792cb0 100755 --- a/blacklist.sh +++ b/blacklist.sh @@ -111,7 +111,7 @@ for url in $urls; do # download the blocklist set_name=$(echo "$url" | awk -F/ '{print substr($3,0,21);}') # set name is derived from source URL hostname - curl -v -s ${COMPRESS_OPT} -k "$url" >"${unsorted_blocklist}" 2>"${headers}" + curl -L -v -s ${COMPRESS_OPT} -k "$url" >"${unsorted_blocklist}" 2>"${headers}" # this is required for blocklist.de that sends compressed content regardless of asked or not if [ -z "$COMPRESS_OPT" ]; then