Added 3rd party sendfile app
This commit is contained in:
8
3rd_party_apps/sendfile/backends/xsendfile.py
Normal file
8
3rd_party_apps/sendfile/backends/xsendfile.py
Normal file
@@ -0,0 +1,8 @@
|
||||
from django.http import HttpResponse
|
||||
|
||||
def sendfile(request, filename):
|
||||
response = HttpResponse()
|
||||
response['X-Sendfile'] = filename
|
||||
|
||||
return response
|
||||
|
||||
Reference in New Issue
Block a user