From 8c944c4cf2b8f2454d77983ab88c25f96d5eeec0 Mon Sep 17 00:00:00 2001 From: morpheus65535 Date: Mon, 21 Nov 2022 06:27:08 -0500 Subject: [PATCH] Fixed log an backup download from UI after flask upgrade. --- bazarr/app/ui.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bazarr/app/ui.py b/bazarr/app/ui.py index 30614895d..8680e90c4 100644 --- a/bazarr/app/ui.py +++ b/bazarr/app/ui.py @@ -91,7 +91,7 @@ def catch_all(path): @check_login @ui_bp.route('/bazarr.log') def download_log(): - return send_file(os.path.join(args.config_dir, 'log', 'bazarr.log'), cache_timeout=0, as_attachment=True) + return send_file(os.path.join(args.config_dir, 'log', 'bazarr.log'), max_age=0, as_attachment=True) @check_login @@ -134,7 +134,7 @@ def movies_images(url): @check_login @ui_bp.route('/system/backup/download/', methods=['GET']) def backup_download(filename): - return send_file(os.path.join(settings.backup.folder, filename), cache_timeout=0, as_attachment=True) + return send_file(os.path.join(settings.backup.folder, filename), max_age=0, as_attachment=True) @ui_bp.route('/api/swaggerui/static/', methods=['GET'])