From d6f21e86f52e4a65720678871764644ae2980358 Mon Sep 17 00:00:00 2001 From: Peter Volkov Date: Tue, 5 Mar 2024 14:55:46 +0200 Subject: [PATCH] fix: remove content-type header from idms get requests Detailed description here https://issuetracker.google.com/issues/328089077 --- auth/detect/internal/externalaccount/aws_provider.go | 1 - 1 file changed, 1 deletion(-) diff --git a/auth/detect/internal/externalaccount/aws_provider.go b/auth/detect/internal/externalaccount/aws_provider.go index e8cd1d017f60..9fa86e6303da 100644 --- a/auth/detect/internal/externalaccount/aws_provider.go +++ b/auth/detect/internal/externalaccount/aws_provider.go @@ -279,7 +279,6 @@ func (cs *awsSubjectProvider) getMetadataSecurityCredentials(ctx context.Context if err != nil { return result, err } - req.Header.Set("Content-Type", "application/json") for name, value := range headers { req.Header.Add(name, value) }