#2131: [patch] HttpResponseSendFile for serving static files handler-specific
sendfile mechanism
-----------------------------------------------+----------------------------
Reporter: ymasuda[at]ethercube.com | Owner: alsleme
Status: new | Milestone:
Component: Core framework | Version: SVN
Resolution: | Keywords:
Stage: Design decision needed | Has_patch: 1
Needs_docs: 0 | Needs_tests: 1
Needs_better_patch: 0 |
-----------------------------------------------+----------------------------
Comment (by jacob):
Looks good. I'd like to see support for `X-SendFile` baked in. This should
be too hard to do: instead of storing the file name in
`self.sendfile_filename`, store it in an `X-SendFile` header. Then we just
need a small piece of middleware -- or, perhaps, something added to the
common middleware? -- that responds to a setting
(`SERVER_SUPPORTS_X_SENDFILE` or somesuch) and returns the response with
the header and an empty body.
--
Ticket URL: <http://code.djangoproject.com/ticket/2131#comment:27>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---