summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJin Qin <qinjin@google.com>2024-03-11 23:09:23 +0000
committerCody Oss <codyoss@google.com>2024-03-12 14:54:40 +0000
commit5a05c654f92c675eb6bfe782f61b601b0efb77ea (patch)
treee1c9fe05f20ac41a36e5b2d98e1c4daa13c00550
parent3a6776ada799d857cee190d6f517c4afee7c3170 (diff)
downloadgolang-x-oauth2-5a05c654f92c675eb6bfe782f61b601b0efb77ea.tar.gz
oauth2/google: fix remove content-type header from idms get requests
This is a fix on the https://github.com/googleapis/google-cloud-go/pull/9508. The aws provider in that library is a ported dependency from here. Change-Id: I28e1efa4fdb8292210b695a164a55060c83dae88 GitHub-Last-Rev: c425f2d3b12082bdd477100648a9e46cab026da0 GitHub-Pull-Request: golang/oauth2#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>
-rw-r--r--google/externalaccount/aws.go1
1 files changed, 0 insertions, 1 deletions
diff --git a/google/externalaccount/aws.go b/google/externalaccount/aws.go
index da61d0c..ca27c2e 100644
--- a/google/externalaccount/aws.go
+++ b/google/externalaccount/aws.go
@@ -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)