Hi,

I want to use X-Sendfile to serve some medium-sized files. There
doesn't seem to be built-in support for this, although the soc2009/
http-wsgi-improvements branch looks like somebody attempted to
implement HttpResponseSendFile (although it seems to use the slow
path).

Building a proper response manually is not the problem (since the
apache extension does the content-type guessing and length
calculation) but I would like an automatic fall-back so `manage.py
runserver` doesn't put out an empty response leaking the header but
serves the file like a proper server should.

So: is there a class that detects the server and uses the X-Sendfile
header if supported, or a branch where core.handlers.wsgi.WSGIHandler
supports X-Sendfile?


cheers,

--
pascal

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@googlegroups.com.
To unsubscribe from this group, send email to 
django-developers+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en.

Reply via email to