diff --git a/utils/get-boost.ps1 b/utils/get-boost.ps1 index a12ba0c..5d12625 100644 --- a/utils/get-boost.ps1 +++ b/utils/get-boost.ps1 @@ -17,9 +17,9 @@ function DownloadFileWithRetry } try { - WebClient wc = new System.Net.WebClient() - wc.Headers.Add("User-Agent: Other"); - wc.DownloadFile($Url, $Out); + $wc = New-Object System.Net.WebClient + $wc.Headers.Add("User-Agent", "Other") + $wc.DownloadFile($Url, $Out) break } catch