diff --git a/beetsplug/web/__init__.py b/beetsplug/web/__init__.py index cebb0be0a..cd7e8a3fc 100644 --- a/beetsplug/web/__init__.py +++ b/beetsplug/web/__init__.py @@ -336,7 +336,6 @@ 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 f9e923aa3..de629dfc2 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -282,6 +282,8 @@ 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: