From 84cb162d1d796a4d1d0bf0fd55a7c1128c84aca1 Mon Sep 17 00:00:00 2001 From: Romain <96626929+Romanitho@users.noreply.github.com> Date: Mon, 24 Oct 2022 11:51:26 +0200 Subject: [PATCH] Fix for WSB --- Winget-AutoUpdate/functions/Test-Network.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Winget-AutoUpdate/functions/Test-Network.ps1 b/Winget-AutoUpdate/functions/Test-Network.ps1 index d0a963b..459e6bf 100644 --- a/Winget-AutoUpdate/functions/Test-Network.ps1 +++ b/Winget-AutoUpdate/functions/Test-Network.ps1 @@ -10,7 +10,7 @@ function Test-Network { While ($timeout -lt 1800) { $URLtoTest = "https://raw.githubusercontent.com/Romanitho/Winget-AutoUpdate/main/LICENSE" - $URLcontent = ((Invoke-WebRequest -URI $URLtoTest).content) + $URLcontent = ((Invoke-WebRequest -URI $URLtoTest -UseBasicParsing).content) if ($URLcontent -like "*MIT License*") { @@ -73,4 +73,4 @@ function Test-Network { Start-NotifTask $Title $Message $MessageType $Balise return $false -} \ No newline at end of file +}