From 536a74d88dd9b097872f95bd1423335558fe8a7d Mon Sep 17 00:00:00 2001 From: Andrzej Demski <75534654+AndrewDemski-ad-gmail-com@users.noreply.github.com> Date: Wed, 4 Sep 2024 22:28:02 +0200 Subject: [PATCH] Update Test-Network.ps1 --- Sources/Winget-AutoUpdate/functions/Test-Network.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Winget-AutoUpdate/functions/Test-Network.ps1 b/Sources/Winget-AutoUpdate/functions/Test-Network.ps1 index e6c6536..aa38458 100644 --- a/Sources/Winget-AutoUpdate/functions/Test-Network.ps1 +++ b/Sources/Winget-AutoUpdate/functions/Test-Network.ps1 @@ -22,7 +22,7 @@ function Test-Network { While ($timeout -lt 1800) { try { - $ncsiResponse = Invoke-WebRequest -Uri "http://$($ncsiHost)/$($ncsiPath)" -UseBasicParsing -UserAgent ([Microsoft.PowerShell.Commands.PSUserAgent]::Chrome) + $ncsiResponse = Invoke-WebRequest -Uri "http://$($ncsiHost)/$($ncsiPath)" -UseBasicParsing -UserAgent ([Microsoft.PowerShell.Commands.PSUserAgent]::Chrome); # DevSkim: ignore DS137138 Insecure URL } catch { $ncsiResponse = $false