Fix: Ram y PS1
This commit is contained in:
@@ -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+)..."
|
||||
|
||||
Reference in New Issue
Block a user