Add request IP to get_direct_download_url method

This commit is contained in:
Joseph Schorr 2017-09-25 17:14:28 -04:00
parent ad61df66c5
commit 56fbbcf7cf
8 changed files with 13 additions and 11 deletions

View file

@ -147,7 +147,7 @@ class SwiftStorage(BaseStorage):
logger.exception('Could not head object at path %s: %s', path, ex)
return None
def get_direct_download_url(self, object_path, expires_in=60, requires_cors=False, head=False):
def get_direct_download_url(self, object_path, request_ip=None, expires_in=60, requires_cors=False, head=False):
if requires_cors:
return None