From 9ac0063ecda4260697b8e945c5a9b00009053fe5 Mon Sep 17 00:00:00 2001 From: arithmetic1728 Date: Wed, 27 Jan 2021 17:49:03 -0800 Subject: [PATCH] update --- google/cloud/storage/blob.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/google/cloud/storage/blob.py b/google/cloud/storage/blob.py index 8564f8e0d..83a120e25 100644 --- a/google/cloud/storage/blob.py +++ b/google/cloud/storage/blob.py @@ -830,7 +830,7 @@ def _get_download_url( name_value_pairs = [] if self.media_link is None: base_url = _DOWNLOAD_URL_TEMPLATE.format( - hostname=client._connection.API_BASE_URL, path=self.path + hostname=client._connection.get_api_base_url_for_mtls(), path=self.path ) if self.generation is not None: name_value_pairs.append(("generation", "{:d}".format(self.generation))) @@ -1684,7 +1684,7 @@ def _do_multipart_upload( headers, object_metadata, content_type = info base_url = _MULTIPART_URL_TEMPLATE.format( - hostname=client._connection.API_BASE_URL, bucket_path=self.bucket.path + hostname=client._connection.get_api_base_url_for_mtls(), bucket_path=self.bucket.path ) name_value_pairs = [] @@ -1865,7 +1865,7 @@ def _initiate_resumable_upload( headers.update(extra_headers) base_url = _RESUMABLE_URL_TEMPLATE.format( - hostname=client._connection.API_BASE_URL, bucket_path=self.bucket.path + hostname=client._connection.get_api_base_url_for_mtls(), bucket_path=self.bucket.path ) name_value_pairs = []