blockcheck: print redirection http code

This commit is contained in:
bol-van 2022-01-25 14:10:33 +03:00
parent a604ba1ac5
commit 9a7d1e8e56

View File

@ -302,7 +302,7 @@ curl_test_http()
loc=$(hdrfile_location "$HDRTEMP")
echo "$loc" | grep -qE "^https?://.*$2(/|$)" ||
echo "$loc" | grep -vqE '^https?://' || {
echo suspicious redirection to : $loc
echo suspicious redirection $code to : $loc
rm -f "$HDRTEMP"
return 254
}