Merge pull request #5057 from mgoltzsche/fix-web-plugin-range-requests

web: fix/add range request support
This commit is contained in:
Adrian Sampson 2023-12-22 08:46:44 -05:00 committed by GitHub
commit 296f01b775
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -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

View file

@ -279,6 +279,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: