Skip to content

Commit 5a05c65

Browse files
BigTailWolfcodyoss
authored andcommitted
oauth2/google: fix remove content-type header from idms get requests
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>
1 parent 3a6776a commit 5a05c65

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

google/externalaccount/aws.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,6 @@ func (cs *awsCredentialSource) getMetadataSecurityCredentials(roleName string, h
520520
if err != nil {
521521
return result, err
522522
}
523-
req.Header.Add("Content-Type", "application/json")
524523

525524
for name, value := range headers {
526525
req.Header.Add(name, value)

0 commit comments

Comments
 (0)