#629
This commit is contained in:
amd64fox
2024-09-15 21:09:57 +03:00
parent 6dca82a292
commit 92ef6cb117
+2 -2
View File
@@ -481,12 +481,12 @@ function downloadSp() {
if ($stcode.trim() -ne "200") { if ($stcode.trim() -ne "200") {
Write-Host "Curl error code: $stcode"; throw Write-Host "Curl error code: $stcode"; throw
} }
curl.exe -q $web_Url -o $local_Url --progress-bar --retry 3 --ssl-no-revoke curl.exe -q -k $web_Url -o $local_Url --progress-bar --retry 3 --ssl-no-revoke
return return
} }
if (!($curl_check ) -and $null -ne (Get-Module -Name BitsTransfer -ListAvailable)) { if (!($curl_check ) -and $null -ne (Get-Module -Name BitsTransfer -ListAvailable)) {
$ProgressPreference = 'Continue' $ProgressPreference = 'Continue'
Start-BitsTransfer -Source -k $web_Url -Destination $local_Url -DisplayName ($lang).Download5 -Description "$online " Start-BitsTransfer -Source $web_Url -Destination $local_Url -DisplayName ($lang).Download5 -Description "$online "
return return
} }
if (!($curl_check ) -and $null -eq (Get-Module -Name BitsTransfer -ListAvailable)) { if (!($curl_check ) -and $null -eq (Get-Module -Name BitsTransfer -ListAvailable)) {