From 5a05c654f92c675eb6bfe782f61b601b0efb77ea Mon Sep 17 00:00:00 2001 From: Jin Qin Date: Mon, 11 Mar 2024 23:09:23 +0000 Subject: [PATCH] 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 Reviewed-by: Chris Smith LUCI-TryBot-Result: Go LUCI --- google/externalaccount/aws.go | 1 - 1 file changed, 1 deletion(-) diff --git a/google/externalaccount/aws.go b/google/externalaccount/aws.go index da61d0c0e..ca27c2e98 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)