From 7838e70d41cdc7b4d31ff28a087df5c3a65e033b Mon Sep 17 00:00:00 2001 From: Alok Saboo Date: Sat, 23 Dec 2023 12:25:22 -0500 Subject: [PATCH] Revert "Merge remote-tracking branch 'upstream/master' into lb" This reverts commit 6bfe26642c30df103f1c48f612cc9ac5ebc1adf8, reversing changes made to 9b8dbe8055d8e74ab74d3ead68077a7cbf4ecfe9. --- beetsplug/web/__init__.py | 1 + docs/changelog.rst | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/beetsplug/web/__init__.py b/beetsplug/web/__init__.py index cd7e8a3fc..cebb0be0a 100644 --- a/beetsplug/web/__init__.py +++ b/beetsplug/web/__init__.py @@ -336,6 +336,7 @@ def item_file(item_id): response = flask.send_file( item_path, as_attachment=True, download_name=safe_filename ) + response.headers["Content-Length"] = os.path.getsize(item_path) return response diff --git a/docs/changelog.rst b/docs/changelog.rst index de629dfc2..f9e923aa3 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -282,8 +282,6 @@ Bug fixes: :bug:`4973` * Fix bug regarding displaying tracks that have been changed not being displayed unless the detail configuration is enabled. -* :doc:`/plugins/web`: Fix range request support, allowing to play large audio/ - opus files using e.g. a browser/firefox or gstreamer/mopidy directly. For plugin developers: