From 376950e65b373b1b605a883043724913c300888f Mon Sep 17 00:00:00 2001 From: Michael Jolley Date: Sun, 5 Jul 2026 15:53:34 -0500 Subject: [PATCH] Send application/json content type on Store submission commit The Ingestion API rejects the submission commit POST with 'Only JSON content is accepted' (target: mediaType) unless the request advertises a JSON content type. The commit carries no body, so PowerShell was sending no Content-Type header at all. Passing -ContentType 'application/json' sends the header with Content-Length 0 and satisfies the API's media-type check. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- .github/workflows/release.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5d6e8c6..128fdac 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -462,7 +462,11 @@ jobs: } # --- Step 5: commit the submission --- - Invoke-RestMethod -Method Post -Uri "$submissionUri/commit" -Headers $headers | Out-Null + # The Ingestion API rejects the commit unless the request advertises a JSON + # content type, even though the commit itself carries no body. Passing + # -ContentType sends the header (Content-Length: 0) and satisfies the check. + Invoke-RestMethod -Method Post -Uri "$submissionUri/commit" -Headers $headers ` + -ContentType "application/json" | Out-Null Write-Host "Submission commit requested." # --- Step 6: poll until the commit is accepted (or fails) ---