mirror of
git://code.qt.io/qt/qt5.git
synced 2026-02-01 19:36:04 +08:00
Provisioning: Fix downloading from github
Invoke-WebRequest uses TLS1.0 by default, which is not accepted by Github anymore, causing all downloads from that site to fail. Upgrade to 1.2 to get downloads working again. Change-Id: Ie242432937c273db5c345b38482dd74c19c3b4ca Reviewed-by: Tony Sarajärvi <tony.sarajarvi@qt.io> Reviewed-by: Aapo Keskimolo <aapo.keskimolo@qt.io>
This commit is contained in:
committed by
Liang Qi
parent
bfda8d1f25
commit
bd8fe6a463
@@ -87,6 +87,7 @@ function Download
|
||||
[string] $Destination = $(BadParam("a download target location"))
|
||||
)
|
||||
$ProgressPreference = 'SilentlyContinue'
|
||||
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
|
||||
try {
|
||||
Write-Host "Downloading from cached location ($CachedUrl) to $Destination"
|
||||
if ($CachedUrl.StartsWith("http")) {
|
||||
|
||||
Reference in New Issue
Block a user