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

Allow bypassing of mimetype and encoding guessing #34

Open
moggers87 opened this issue Feb 11, 2020 · 0 comments
Open

Allow bypassing of mimetype and encoding guessing #34

moggers87 opened this issue Feb 11, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@moggers87
Copy link
Owner

Following on from #18

sendfile() currently checks if the requested file exists regardless of chosen backend. However, most backends actually support serving files that are not necessarily accessibly to the Django app.

  • File exists checks should only happen when data for headers is not available (implying the user wants us to do it for them)
  • Add a kwarg for content length
  • Simple and development backends assume that the file exists if they are called, either make those backends aware or wrap the backend call in an appropriate try/except
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant