Actualiza toolkit operativo y documentación

This commit is contained in:
urieljareth
2026-09-10 20:53:50 -06:00
parent 3b7209dcc1
commit 714057bfc8
69 changed files with 6023 additions and 384 deletions
+6 -2
View File
@@ -47,8 +47,12 @@ if ($PSBoundParameters.ContainsKey("BodyJson")) {
throw "BodyJson is not valid JSON: $($_.Exception.Message)"
}
$request.Body = $BodyJson
$request.ContentType = "application/json"
# Send bytes, not a string. PowerShell 5.1 encodes a string body using the
# default codepage, so any non-ASCII character (an accented comment inside a
# compose file, for instance) reaches Coolify mangled and it answers
# 400 {"message":"Invalid request.","error":"Invalid JSON."}.
$request.Body = [Text.Encoding]::UTF8.GetBytes($BodyJson)
$request.ContentType = "application/json; charset=utf-8"
}
try {