Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Accept-Range header in send_file? #349

Open
EternityForest opened this issue Jun 18, 2024 · 0 comments
Open

Support Accept-Range header in send_file? #349

EternityForest opened this issue Jun 18, 2024 · 0 comments

Comments

@EternityForest
Copy link

EternityForest commented Jun 18, 2024

It would be nice to have an accept_range flag on the semd_file, that would set the accept header, and check for range requests in the context.

It seems easy enough to implement so I can write the feature and do a PR if this is in-scope for the project.

In very simple one off apps, it would be nice to be able to serve seekable media without needing to add an extra ASGi server to handle the static file serving.

Right now this doesn't seem to work in browsers without range requests enabled.

Also, non-resumable downloads are generally annoying.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant