Use x-ms-range instead of range header so offsets for files larger than
4 GB are supported.
@@ -691,7 +691,7 @@ class AzureBlobsStorageDriver(StorageDriver):
end_bytes=end_bytes)
obj_path = self._get_object_path(obj.container, obj.name)
- headers = {'Range': self._get_standard_range_str(start_bytes,
+ headers = {'x-ms-range': self._get_standard_range_str(start_bytes,
end_bytes)}
response = self.connection.request(obj_path, headers=headers,
raw=True, data=None)
@@ -720,7 +720,7 @@ class AzureBlobsStorageDriver(StorageDriver):
obj_path = self._get_object_path(obj.container, obj.name)
- headers = {'Range': self._get_standard_range_str(start_bytes,
+ headers = {'x-ms-range': self._get_standard_range_str(start_bytes,
end_bytes)}
response = self.connection.request(obj_path, method='GET',
headers=headers,
