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.
Last Updated
Dec 22, 2021 at 00:25
License
MIT
Total Downloads
27.0K
Version Downloads
27.0K
Supported Platforms
GitHub Repository
https://github.com/wearespindle/django-ranged-fileresponse