fix: adapt send_file usage

This commit is contained in:
ziirish 2023-04-10 21:36:01 +02:00
parent 1d00a931ae
commit e91daf5627
2 changed files with 2 additions and 2 deletions

View file

@ -189,7 +189,7 @@ class Restore(Resource):
resp = send_file(
fh,
as_attachment=True,
attachment_filename=filename,
download_name=filename,
mimetype="application/zip",
)
resp.set_cookie("fileDownload", "true")

View file

@ -240,7 +240,7 @@ class TaskGetFile(Resource):
resp = send_file(
fh,
as_attachment=True,
attachment_filename=filename,
download_name=filename,
mimetype="application/zip",
)
resp.set_cookie("fileDownload", "true")