fix: do not check for redirects in web_check(). close #1108
This commit is contained in:
parent
1ea307fff1
commit
b69893f48b
3
quickget
3
quickget
|
@ -1296,8 +1296,7 @@ function web_redirect() {
|
||||||
# checks if a URL is reachable
|
# checks if a URL is reachable
|
||||||
function web_check() {
|
function web_check() {
|
||||||
local HEADERS=()
|
local HEADERS=()
|
||||||
local URL=""
|
local URL="${1}"
|
||||||
URL=$(web_redirect "${1}")
|
|
||||||
# Process any headers
|
# Process any headers
|
||||||
while (( "$#" )); do
|
while (( "$#" )); do
|
||||||
if [ "${1}" == "--header" ]; then
|
if [ "${1}" == "--header" ]; then
|
||||||
|
|
Loading…
Reference in New Issue