We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c3bfd7 commit be5dc4fCopy full SHA for be5dc4f
google/auth/aws.py
@@ -650,7 +650,7 @@ def _get_metadata_security_credentials(
650
google.auth.exceptions.RefreshError: If an error occurs while
651
retrieving the AWS security credentials.
652
"""
653
- headers = {"Content-Type": "application/json"}
+ headers = {}
654
if imdsv2_session_token is not None:
655
headers["X-aws-ec2-metadata-token"] = imdsv2_session_token
656
0 commit comments