Skip to content

Commit

Permalink
Remove content-type header from IDMS GET requests
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-volkov authored Mar 5, 2024
1 parent 3c3bfd7 commit 635d258
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion google/auth/aws.py
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,7 @@ def _get_metadata_security_credentials(
google.auth.exceptions.RefreshError: If an error occurs while
retrieving the AWS security credentials.
"""
headers = {"Content-Type": "application/json"}
headers = {}
if imdsv2_session_token is not None:
headers["X-aws-ec2-metadata-token"] = imdsv2_session_token

Expand Down

0 comments on commit 635d258

Please sign in to comment.