]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
Removes one last portion of PNG vs WebP 1127/head
authorTrenton Holmes <holmes.trenton@gmail.com>
Sun, 12 Jun 2022 16:12:02 +0000 (09:12 -0700)
committerTrenton Holmes <holmes.trenton@gmail.com>
Sun, 12 Jun 2022 16:12:02 +0000 (09:12 -0700)
src/documents/views.py

index 8fa86b4ca50f8fbfa3b8c6d8e0a62fbd148b8817..b8d4075d0815f61bd10f7e7c71830c036953b037 100644 (file)
@@ -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()