diff --git a/desktop/libs/azure/src/azure/abfs/abfs.py b/desktop/libs/azure/src/azure/abfs/abfs.py index 25a2328c825..9f38a4e2850 100644 --- a/desktop/libs/azure/src/azure/abfs/abfs.py +++ b/desktop/libs/azure/src/azure/abfs/abfs.py @@ -409,7 +409,7 @@ def read(self, path, offset='0', length=0, *args, **kwargs): path = Init_ABFS.strip_scheme(path) headers = self._getheaders() if length != 0 and length != '0': - headers['range'] = 'bytes=%s-%s' % (str(offset), str(int(offset) + int(length))) + headers['range'] = 'bytes=%s-%s' % (str(offset), str(int(offset) + int(length) - 1)) return self._root.get(path, headers=headers)