Update Invoke-ZertoRestRequest.ps1

This commit is contained in:
2025-02-09 20:51:47 -05:00
parent dc08618ae9
commit de23881418
@@ -61,11 +61,15 @@ function Invoke-ZertoRestRequest {
Uri = $submittedURI
Method = $method
Headers = $headers
Body = $body
TimeoutSec = 100
ContentType = "application/json"
}
# Ensure GET requests do not include a body
if ($method -ne "GET") {
$params["Body"] = $body
}
# Handle authentication requests
if ($uri -match "auth/realms/.*/protocol/openid-connect/token" -and $method -eq "POST") {
$data = @{