Skip to content

Commit

Permalink
[get-boost] correct WebClient instance calls
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasDuvinage authored Oct 28, 2024
1 parent ddf0c98 commit e03aafe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions utils/get-boost.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e03aafe

Please sign in to comment.