django-ranged-response
Adds support for HTTP_RANGE requests in Django.
Adds support for HTTP_RANGE requests in Django.
To install this package, run one of the following:
If you're in the situation that you have an authenticated Django view that returns files for download, you may have noticed that Safari 9.x doesn't play audio files properly when returning audio-files. The reason is that Safari sends a HTTP_RANGE request header and expects a proper Content-Range response header in return. The original suggested fix applies the code to Django's static view. This is a packaged version of that fix, but uses a modified FileResponse, instead of applying it to Django's static view.
Summary
Adds support for HTTP_RANGE requests in Django.
Information Last Updated
Apr 22, 2025 at 14:58
License
MIT
Total Downloads
25.2K
Platforms
GitHub Repository
https://github.com/wearespindle/django-ranged-fileresponse