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

Limit bytes returned from files for range requests. #322

Merged
merged 1 commit into from
Jan 31, 2022

Conversation

rtibbles
Copy link
Contributor

  • Returns a file like object for range requests that prevents reading the file beyond the end of the range request
  • Adds a test for the behaviour

Fixes #301

@adamchainz adamchainz merged commit 8ea1336 into evansd:master Jan 31, 2022
@rtibbles rtibbles deleted the limit_range branch February 2, 2022 19:33
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

Successfully merging this pull request may close these issues.

Whitenoise does not limit reads beyond the end of a range request
2 participants