fix: do not check for redirects in web_check(). close #1108

This commit is contained in:
Martin Wimpress 2024-04-28 03:01:40 +01:00 committed by Martin Wimpress
parent 1ea307fff1
commit b69893f48b

View File

@ -1296,8 +1296,7 @@ function web_redirect() {
# checks if a URL is reachable
function web_check() {
local HEADERS=()
local URL=""
URL=$(web_redirect "${1}")
local URL="${1}"
# Process any headers
while (( "$#" )); do
if [ "${1}" == "--header" ]; then