From 32b198942bed60e78b88789fe2970f8353cd4d9c Mon Sep 17 00:00:00 2001 From: minus Date: Sun, 29 Jan 2023 22:19:19 +0100 Subject: [PATCH] Update send_file call args --- stewdio/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stewdio/app.py b/stewdio/app.py index 0109c22..3ea8347 100644 --- a/stewdio/app.py +++ b/stewdio/app.py @@ -129,7 +129,7 @@ def download(hash, session): att_fn = os.path.basename(song.path).encode('ascii', errors='replace').decode('ascii').replace('?', '_') if not os.path.exists(song.path): return flask.Response(status=404) - return flask.send_file(song.path, as_attachment=True, attachment_filename=att_fn) + return flask.send_file(song.path, as_attachment=True, download_name=att_fn) def _listeners(): r = requests.get(kawa('listeners')) -- 2.45.2