Skip to content

Commit be5dc4f

Browse files
peter-volkovpv-aiuta-com
authored andcommitted
fix: remove content-type header from idms get requests
1 parent 3c3bfd7 commit be5dc4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

google/auth/aws.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,7 @@ def _get_metadata_security_credentials(
650650
google.auth.exceptions.RefreshError: If an error occurs while
651651
retrieving the AWS security credentials.
652652
"""
653-
headers = {"Content-Type": "application/json"}
653+
headers = {}
654654
if imdsv2_session_token is not None:
655655
headers["X-aws-ec2-metadata-token"] = imdsv2_session_token
656656

0 commit comments

Comments
 (0)