Skip to content

Commit 35780b8

Browse files
committed
add download function
1 parent 144b273 commit 35780b8

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

urbackup_api/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -473,8 +473,9 @@ def download_backup_file(self, clientid, backupid, path="/"):
473473

474474
if response.status != 200:
475475
return None
476-
477-
return response
476+
data = response.read()
477+
response.close()
478+
return data
478479

479480
def get_groups(self):
480481
if not self.login():

0 commit comments

Comments
 (0)