Skip to content

Commit

Permalink
oauth2/google: fix remove content-type header from idms get requests
Browse files Browse the repository at this point in the history
This is a fix on the googleapis/google-cloud-go#9508.
The aws provider in that library is a ported dependency from here.

Change-Id: I28e1efa4fdb8292210b695a164a55060c83dae88
GitHub-Last-Rev: c425f2d
GitHub-Pull-Request: #711
Reviewed-on: https://go-review.googlesource.com/c/oauth2/+/570875
Reviewed-by: Cody Oss <codyoss@google.com>
Reviewed-by: Chris Smith <chrisdsmith@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
  • Loading branch information
BigTailWolf authored and codyoss committed Mar 12, 2024
1 parent 3a6776a commit 5a05c65
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion google/externalaccount/aws.go
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,6 @@ func (cs *awsCredentialSource) getMetadataSecurityCredentials(roleName string, h
if err != nil {
return result, err
}
req.Header.Add("Content-Type", "application/json")

for name, value := range headers {
req.Header.Add(name, value)
Expand Down

0 comments on commit 5a05c65

Please sign in to comment.