Add request IP to get_direct_download_url method
This commit is contained in:
parent
ad61df66c5
commit
56fbbcf7cf
8 changed files with 13 additions and 11 deletions
|
@ -56,9 +56,9 @@ class DistributedStorage(StoragePaths):
|
|||
cancel_chunked_upload = _location_aware(BaseStorageV2.cancel_chunked_upload)
|
||||
|
||||
|
||||
def get_direct_download_url(self, locations, path, expires_in=600, requires_cors=False,
|
||||
def get_direct_download_url(self, locations, path, request_ip=None, expires_in=600, requires_cors=False,
|
||||
head=False):
|
||||
download_url = self._get_direct_download_url(locations, path, expires_in, requires_cors, head)
|
||||
download_url = self._get_direct_download_url(locations, path, request_ip, expires_in, requires_cors, head)
|
||||
if download_url is None:
|
||||
return None
|
||||
|
||||
|
|
Reference in a new issue