From 07cb108c190524180cd1c18d3b9317178d58d388 Mon Sep 17 00:00:00 2001 From: dyoder Date: Thu, 19 Aug 2021 12:43:40 -0400 Subject: [PATCH] make sure a 404 isn't returned instead of only checking for 200 --- Tools.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tools.ps1 b/Tools.ps1 index 7611e20..144da70 100644 --- a/Tools.ps1 +++ b/Tools.ps1 @@ -175,7 +175,7 @@ Function IsURLValid { $HTTPResponse.Close() } Catch { } - If ($HTTPStatus -eq 200) { Return $true } + If ($HTTPStatus -ne 404) { Return $true } Else { Return $false } }