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 fcc8b33 commit 956e900Copy full SHA for 956e900
1 file changed
packages/google-api-core/google/api_core/universe.py
@@ -141,9 +141,9 @@ def get_default_mtls_endpoint(api_endpoint: Optional[str]) -> Optional[str]:
141
suffix_sandbox = ".sandbox.googleapis.com"
142
suffix_google = ".googleapis.com"
143
if lowered_host.endswith(suffix_sandbox):
144
- new_host = host[:-len(suffix_sandbox)] + ".mtls.sandbox.googleapis.com"
+ new_host = host[: -len(suffix_sandbox)] + ".mtls.sandbox.googleapis.com"
145
elif lowered_host.endswith(suffix_google):
146
- new_host = host[:-len(suffix_google)] + ".mtls.googleapis.com"
+ new_host = host[: -len(suffix_google)] + ".mtls.googleapis.com"
147
else:
148
return api_endpoint
149
0 commit comments