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 e8900ad commit ec5711eCopy full SHA for ec5711e
pymongo/_gcp_helpers.py
@@ -22,7 +22,7 @@
22
def _get_gcp_response(resource: str, timeout: float = 5) -> dict[str, Any]:
23
url = "http://metadata/computeMetadata/v1/instance/service-accounts/default/identity"
24
url += f"?audience={resource}"
25
- headers = {"Metadata-Flavor": "Google", "Accept": "application/json"}
+ headers = {"Metadata-Flavor": "Google"}
26
request = Request(url, headers=headers) # noqa: S310
27
try:
28
with urlopen(request, timeout=timeout) as response: # noqa: S310
0 commit comments