1
0
mirror of https://github.com/etesync/server synced 2025-01-04 05:30:53 +00:00
etesync-server/django_etebase/sendfile/backends/xsendfile.py

10 lines
200 B
Python

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