1
0
mirror of https://github.com/etesync/server synced 2025-01-06 14:40:54 +00:00
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