Skip to content

Commit ec5711e

Browse files
authored
PYTHON-3664 OIDC: Fix GCP headers (#1615)
1 parent e8900ad commit ec5711e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pymongo/_gcp_helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
def _get_gcp_response(resource: str, timeout: float = 5) -> dict[str, Any]:
2323
url = "http://metadata/computeMetadata/v1/instance/service-accounts/default/identity"
2424
url += f"?audience={resource}"
25-
headers = {"Metadata-Flavor": "Google", "Accept": "application/json"}
25+
headers = {"Metadata-Flavor": "Google"}
2626
request = Request(url, headers=headers) # noqa: S310
2727
try:
2828
with urlopen(request, timeout=timeout) as response: # noqa: S310

0 commit comments

Comments
 (0)