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:
Sebastiaan van Stijn 2020-09-21 12:34:30 +02:00 committed by GitHub
commit 8c8dad0549
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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); `
} `