Skip to content

Commit

Permalink
fix(expiration): Add expiration back
Browse files Browse the repository at this point in the history
Signed-off-by: dark0dave <dark0dave@mykolab.com>
  • Loading branch information
dark0dave committed Jan 22, 2024
1 parent f06cfdb commit 7bd0625
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion storages/backends/gcloud.py
Expand Up @@ -330,9 +330,13 @@ def url(self, name, parameters=None):
quoted_name=_quote(name, safe=b"/~"),
)
elif not self.custom_endpoint:
return blob.generate_signed_url(**self.signed_url_extra())
return blob.generate_signed_url(
expiration=self.expiration,
**self.signed_url_extra()
)
else:
return blob.generate_signed_url(
expiration=self.expiration,
api_access_endpoint=self.custom_endpoint,
**self.signed_url_extra()
)
Expand Down

0 comments on commit 7bd0625

Please sign in to comment.