mirror of
https://github.com/SpotX-Official/SpotX.git
synced 2026-06-14 19:36:33 +10:00
fix curl
- removing the 200 code check for curl as it was causing some users to get an error
This commit is contained in:
@@ -813,8 +813,6 @@ function downloadScripts($param1) {
|
||||
}
|
||||
try {
|
||||
if ($param1 -eq "Desktop" -and $curl_check) {
|
||||
$stcode = curl.exe -I -s $web_Url
|
||||
if (!($stcode -match "200 OK")) { throw ($lang).Download6 }
|
||||
curl.exe $web_Url -o $local_Url --progress-bar --retry 3 --ssl-no-revoke
|
||||
}
|
||||
if ($param1 -eq "Desktop" -and $null -ne (Get-Module -Name BitsTransfer -ListAvailable) -and !($curl_check )) {
|
||||
@@ -839,8 +837,6 @@ function downloadScripts($param1) {
|
||||
try {
|
||||
|
||||
if ($param1 -eq "Desktop" -and $curl_check) {
|
||||
$stcode = curl.exe -I -s $web_Url
|
||||
if (!($stcode -match "200 OK")) { throw ($lang).Download6 }
|
||||
curl.exe $web_Url -o $local_Url --progress-bar --retry 3 --ssl-no-revoke
|
||||
}
|
||||
if ($param1 -eq "Desktop" -and $null -ne (Get-Module -Name BitsTransfer -ListAvailable) -and !($curl_check )) {
|
||||
|
||||
Reference in New Issue
Block a user