make sure a 404 isn't returned instead of only checking for 200

This commit is contained in:
2021-08-19 12:43:40 -04:00
parent 53105b1e4a
commit 07cb108c19
+1 -1
View File
@@ -175,7 +175,7 @@ Function IsURLValid {
$HTTPResponse.Close()
}
Catch { }
If ($HTTPStatus -eq 200) { Return $true }
If ($HTTPStatus -ne 404) { Return $true }
Else { Return $false }
}