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: