diff --git a/storages/backends/gcloud.py b/storages/backends/gcloud.py index 77b3e144..74a73973 100644 --- a/storages/backends/gcloud.py +++ b/storages/backends/gcloud.py @@ -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() )