From: Trenton Holmes Date: Sun, 12 Jun 2022 16:12:02 +0000 (-0700) Subject: Removes one last portion of PNG vs WebP X-Git-Tag: v1.8.0-beta.rc1~52^2 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1127%2Fhead;p=thirdparty%2Fpaperless-ngx.git Removes one last portion of PNG vs WebP --- diff --git a/src/documents/views.py b/src/documents/views.py index 8fa86b4ca5..b8d4075d08 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()