From 3e07cfaa120b9e9aabd9f81bbfbc128744d0740b Mon Sep 17 00:00:00 2001 From: Baipyrus Date: Mon, 25 Nov 2024 15:33:04 +0100 Subject: [PATCH] replace with Invoke-WebRequest for optimizations in commit fa7d942 --- util/windows.psm1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/windows.psm1 b/util/windows.psm1 index 60f034b..c1e9273 100644 --- a/util/windows.psm1 +++ b/util/windows.psm1 @@ -132,7 +132,7 @@ function ProcessUrlFiles } Write-Host "Downloading $fileName from $url$conditional..." -ForegroundColor Cyan - Invoke-RestMethod $url -OutFile $fileName$extension + Invoke-WebRequest $url -OutFile $fileName$extension $tmpDestination = "$tmpApp\$fileName$extension" # Copy only if destination is provided