We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1b38dc commit b5cfdd8Copy full SHA for b5cfdd8
Syndication/AzureStack.MarketplaceSyndication.psm1
@@ -1123,7 +1123,10 @@ function InvokeWebRequest {
1123
1124
while (-not $completed) {
1125
try {
1126
- [void]($response = Invoke-WebRequest -Method $Method -Uri $Uri -ContentType "application/json" -Headers $Headers -Body $content -ErrorAction Stop)
+ if ($content -ne $null) {
1127
+ $content = [System.Text.Encoding]::UTF8.GetBytes($content)
1128
+ }
1129
+ [void]($response = Invoke-WebRequest -Method $Method -Uri $Uri -ContentType "application/json; charset=utf-8" -Headers $Headers -Body $content -ErrorAction Stop)
1130
$retryCount = 0
1131
Ensure-SuccessStatusCode -StatusCode $response.StatusCode
1132
$completed = $true
0 commit comments