Fix: Ram y PS1

This commit is contained in:
2025-10-08 14:03:40 -03:00
parent afd378712c
commit 9a6d4f0437
4 changed files with 38 additions and 57 deletions

View File

@@ -49,14 +49,14 @@ if ($isWindows7) {
# Función de envío de datos para PowerShell 2.0
function Send-Data {
param($Url, $Method, $Body)
try {
$webClient = New-Object System.Net.WebClient
$webClient.Headers.Add("Content-Type", "application/json")
return $webClient.UploadString($Url, $Method, $Body)
} catch {
Write-Host "Error en el envío a $Url: $($_.Exception.Message)"
return $null
}
try {
$webClient = New-Object System.Net.WebClient
$webClient.Headers.Add("Content-Type", "application/json")
return $webClient.UploadString($Url, $Method, $Body)
} catch {
Write-Host "Error en el envío a ${Url}: $($_.Exception.Message)"
return $null
}
}
} else {
Write-Host "Ejecutando en modo estándar (PowerShell 5+)..."