fix(api): let nginx handle the media file content type (#2862)

This commit is contained in:
Jonas L 2024-01-01 13:07:35 +01:00 committed by GitHub
parent 7ed1be1816
commit 72268ad9bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 1 deletions

View File

@ -23,7 +23,6 @@ class FileViewSet(viewsets.ModelViewSet):
file = get_object_or_404(File, pk=pk) file = get_object_or_404(File, pk=pk)
response = HttpResponse() response = HttpResponse()
response["Content-Type"] = file.mime
# HTTP headers must be USASCII encoded, or Nginx might not find the file and # HTTP headers must be USASCII encoded, or Nginx might not find the file and
# will return a 404. # will return a 404.