Files
mayan-edms/3rd_party_apps/sendfile/backends/xsendfile.py

9 lines
171 B
Python

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