Skip to content

Commit

Permalink
example fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jdimatteo committed Oct 1, 2020
1 parent 2f4164d commit df00005
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions google/cloud/storage/blob.py
Original file line number Diff line number Diff line change
Expand Up @@ -1611,7 +1611,8 @@ def _do_multipart_upload(
headers, object_metadata, content_type = info

base_url = _MULTIPART_URL_TEMPLATE.format(
hostname=self.client._connection.API_BASE_URL, bucket_path=self.bucket.path
hostname=self._require_client(client)._connection.API_BASE_URL,
bucket_path=self.bucket.path
)
name_value_pairs = []

Expand Down Expand Up @@ -1780,7 +1781,8 @@ def _initiate_resumable_upload(
headers.update(extra_headers)

base_url = _RESUMABLE_URL_TEMPLATE.format(
hostname=self.client._connection.API_BASE_URL, bucket_path=self.bucket.path
hostname=self._require_client(client)._connection.API_BASE_URL,
bucket_path=self.bucket.path
)
name_value_pairs = []

Expand Down

0 comments on commit df00005

Please sign in to comment.