mirror of
https://github.com/redlib-org/redlib-instances.git
synced 2024-11-13 18:06:15 -05:00
Remove -L from curl args so that it does not follow redirects.
This commit is contained in:
parent
c215cd64ea
commit
31e90a2620
@ -354,7 +354,7 @@ get ()
|
|||||||
# Do the GET. Try up to the number of times specified in the tries variable.
|
# Do the GET. Try up to the number of times specified in the tries variable.
|
||||||
for (( i = tries; i > 0; i-- ))
|
for (( i = tries; i > 0; i-- ))
|
||||||
do
|
do
|
||||||
"${curl_cmd[@]}" -m"${timeout}" -fsL -- "${scheme}://${url_no_scheme}"
|
"${curl_cmd[@]}" -m"${timeout}" -fs -- "${scheme}://${url_no_scheme}"
|
||||||
rc=$?
|
rc=$?
|
||||||
|
|
||||||
if [[ ${rc} -eq 0 ]]
|
if [[ ${rc} -eq 0 ]]
|
||||||
|
Loading…
Reference in New Issue
Block a user