From 72268ad9bb1a96b24efda7143b9371d6fd98ca03 Mon Sep 17 00:00:00 2001 From: Jonas L Date: Mon, 1 Jan 2024 13:07:35 +0100 Subject: [PATCH] fix(api): let nginx handle the media file content type (#2862) --- api/libretime_api/storage/views/file.py | 1 - 1 file changed, 1 deletion(-) diff --git a/api/libretime_api/storage/views/file.py b/api/libretime_api/storage/views/file.py index 2341b5c2a..25024fff4 100644 --- a/api/libretime_api/storage/views/file.py +++ b/api/libretime_api/storage/views/file.py @@ -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.