8000 Fix host to use bucket.storage.googleapis.com · gnpitty/python-docs-samples@05da072 · GitHub
[go: up one dir, main page]

Skip to content

Commit 05da072

Browse files
authored
Fix host to use bucket.storage.googleapis.com
1 parent 8e1244e commit 05da072

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

storage/signed_urls/generate_signed_urls.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def generate_signed_url(service_account_file, bucket_name, object_name,
7171
if headers is None:
7272
headers = dict()
7373
# [START storage_signed_url_canonical_headers]
74-
host = 'storage.googleapis.com'
74+
host = '{}.storage.googleapis.com'.format(bucket_name)
7575
headers['host'] = host
7676

7777
canonical_headers = ''

0 commit comments

Comments
 (0)
0