make Curl follow redirects (-L)
Submitted by John
This commit is contained in:
parent
9d483af7bb
commit
a93e2b606d
@ -111,7 +111,7 @@ for url in $urls; do
|
|||||||
|
|
||||||
# download the blocklist
|
# download the blocklist
|
||||||
set_name=$(echo "$url" | awk -F/ '{print substr($3,0,21);}') # set name is derived from source URL hostname
|
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
|
# this is required for blocklist.de that sends compressed content regardless of asked or not
|
||||||
if [ -z "$COMPRESS_OPT" ]; then
|
if [ -z "$COMPRESS_OPT" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user