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
parent a9c1e500b0
commit 42b74dc918
No known key found for this signature in database
GPG Key ID: 61DF940515E06DA3
1 changed files with 1 additions and 2 deletions

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