etesync-server/django_etebase/sendfile/backends/xsendfile.py

10 lines
200 B
Python
Raw Normal View History

from django.http import HttpResponse
def sendfile(request, filename, **kwargs):
filename = str(filename)
response = HttpResponse()
response['X-Sendfile'] = filename
return response