fix(api): let nginx handle the media file content type (#2862)
This commit is contained in:
parent
7ed1be1816
commit
72268ad9bb
|
@ -23,7 +23,6 @@ class FileViewSet(viewsets.ModelViewSet):
|
|||
file = get_object_or_404(File, pk=pk)
|
||||
|
||||
response = HttpResponse()
|
||||
response["Content-Type"] = file.mime
|
||||
|
||||
# HTTP headers must be USASCII encoded, or Nginx might not find the file and
|
||||
# will return a 404.
|
||||
|
|
Loading…
Reference in New Issue