From 222e1968d8603b4f2feabb46c336db30d0123b82 Mon Sep 17 00:00:00 2001 From: Trenton Holmes Date: Sun, 12 Jun 2022 09:12:02 -0700 Subject: [PATCH] Removes one last portion of PNG vs WebP --- src/documents/views.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/documents/views.py b/src/documents/views.py index 8fa86b4ca..b8d4075d0 100644 --- a/src/documents/views.py +++ b/src/documents/views.py @@ -362,9 +362,8 @@ class DocumentViewSet( handle = doc.thumbnail_file # TODO: Send ETag information and use that to send new thumbnails # if available - content_type = "image/webp" - return HttpResponse(handle, content_type=content_type) + return HttpResponse(handle, content_type="image/webp") except (FileNotFoundError, Document.DoesNotExist): raise Http404()