Skip to content
Snippets Groups Projects
Commit 66597a18 authored by R En's avatar R En
Browse files

Update views.py, typo on apache

parent be7e8e1e
No related branches found
No related tags found
No related merge requests found
......@@ -238,7 +238,7 @@ class TrackFileViewSet(viewsets.ReadOnlyModelViewSet):
f.serve_from_source_path)
response = Response()
filename = f.filename
if settings.REVERSE_PROXY_TYPE == 'apache':
if settings.REVERSE_PROXY_TYPE == 'apache2':
response['X-Sendfile'] = file_path
elif settings.REVERSE_PROXY_TYPE == 'nginx':
response['X-Accel-Redirect'] = file_path
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment