Skip to content

Commit

Permalink
[get-boost] update WebClient call
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasDuvinage authored Oct 28, 2024
1 parent 86e6230 commit ddf0c98
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions utils/get-boost.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,9 @@ function DownloadFileWithRetry
}
try
{
using (WebClient wc = new System.Net.WebClient())
{
wc.Headers.Add("User-Agent: Other");
wc.DownloadFile($Url, $Out);
}
WebClient wc = new System.Net.WebClient()
wc.Headers.Add("User-Agent: Other");
wc.DownloadFile($Url, $Out);
break
}
catch
Expand Down

0 comments on commit ddf0c98

Please sign in to comment.