Skip to content

Commit

Permalink
Add ContentType header to Update-GitHubIssue (#7630)
Browse files Browse the repository at this point in the history
* Add ContentType header to Update-GitHubIssue

* replaced application/json

* Update eng/common/scripts/Invoke-GitHubAPI.ps1

Co-authored-by: Daniel Jurek <[email protected]>

---------

Co-authored-by: Wes Haggard <[email protected]>
Co-authored-by: Daniel Jurek <[email protected]>
  • Loading branch information
3 people authored Feb 6, 2024
1 parent b2d2c4d commit 585e7c6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion eng/common/scripts/Invoke-GitHubAPI.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,8 @@ function Update-GitHubIssue {
-Body ($parameters | ConvertTo-Json) `
-Uri $uri `
-Headers (Get-GitHubApiHeaders -token $AuthToken) `
-MaximumRetryCount 3
-MaximumRetryCount 3 `
-ContentType "application/json"
}

function Remove-GitHubSourceReferences {
Expand Down

0 comments on commit 585e7c6

Please sign in to comment.