Merge pull request #41477 from olljanat/fix-rs1-ci
Windows CI: Force Download-File function to use TLS 1.2 (fix to RS1 CI)
This commit is contained in:
commit
8c8dad0549
|
@ -205,6 +205,7 @@ RUN `
|
|||
Throw ("Failed to download " + $source) `
|
||||
}`
|
||||
} else { `
|
||||
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; `
|
||||
$webClient = New-Object System.Net.WebClient; `
|
||||
$webClient.DownloadFile($source, $target); `
|
||||
} `
|
||||
|
|
Loading…
Reference in New Issue