Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
arithmetic1728 committed Jan 28, 2021
1 parent 03e78db commit 9ac0063
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions google/cloud/storage/blob.py
Expand Up @@ -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)))
Expand Down Expand Up @@ -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 = []

Expand Down Expand Up @@ -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 = []

Expand Down

0 comments on commit 9ac0063

Please sign in to comment.