Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

Removes one last portion of PNG vs WebP

Trenton Holmes222e1968d860
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()