Use string JSON body for file collector posts

This commit is contained in:
Devin AI
2026-05-02 20:34:07 +00:00
parent 8088b19dc7
commit f45ef0038d
+1 -2
View File
@@ -44,8 +44,7 @@ function Invoke-AwJsonPost {
[Parameter(Mandatory = $true)][string]$Uri,
[Parameter(Mandatory = $true)][string]$Json
)
$bytes = [Text.Encoding]::UTF8.GetBytes($Json)
Invoke-RestMethod -Method Post -Uri $Uri -ContentType 'application/json; charset=utf-8' -Body $bytes | Out-Null
Invoke-RestMethod -Method Post -Uri $Uri -ContentType 'application/json' -Body $Json | Out-Null
}
function Ensure-Bucket {