Commit 871a1387 authored by fred's avatar fred
Browse files

let nginx determine content type

parent 198cebd7
......@@ -1124,7 +1124,7 @@ chat = cache_control(max_age=15)(Chat.as_view())
def media_hosting(request, location, *args, **kwargs):
local_path = default_storage.path(location)
response = HttpResponse()
response = HttpResponse(content_type='')
if os.path.exists(local_path):
response['X-Accel-Redirect'] = settings.OFFSITE_MEDIA_SOUNDS[0] + location
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment