make Curl follow redirects (-L)

Submitted by John
This commit is contained in:
Paweł Krawczyk 2015-10-25 22:33:49 +00:00
parent 9d483af7bb
commit a93e2b606d

View File

@ -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