allow HEAD on ACI images

Fixes #911.
This commit is contained in:
Jimmy Zelinskie 2016-02-11 17:00:38 -05:00
parent a9c64545fa
commit 2b07b6d8a9
5 changed files with 11 additions and 7 deletions

View file

@ -116,10 +116,12 @@ class _CloudStorage(BaseStorageV2):
def get_supports_resumable_downloads(self):
return True
def get_direct_download_url(self, path, expires_in=60, requires_cors=False):
def get_direct_download_url(self, path, expires_in=60, requires_cors=False, head=False):
self._initialize_cloud_conn()
path = self._init_path(path)
k = self._key_class(self._cloud_bucket, path)
if head:
return k.generate_url(expires_in, 'HEAD')
return k.generate_url(expires_in)
def get_direct_upload_url(self, path, mime_type, requires_cors=True):