mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-07 15:25:41 +01:00
Removes one last portion of PNG vs WebP
This commit is contained in:
parent
1df517afd3
commit
222e1968d8
1 changed files with 1 additions and 2 deletions
|
|
@ -362,9 +362,8 @@ class DocumentViewSet(
|
||||||
handle = doc.thumbnail_file
|
handle = doc.thumbnail_file
|
||||||
# TODO: Send ETag information and use that to send new thumbnails
|
# TODO: Send ETag information and use that to send new thumbnails
|
||||||
# if available
|
# if available
|
||||||
content_type = "image/webp"
|
|
||||||
|
|
||||||
return HttpResponse(handle, content_type=content_type)
|
return HttpResponse(handle, content_type="image/webp")
|
||||||
except (FileNotFoundError, Document.DoesNotExist):
|
except (FileNotFoundError, Document.DoesNotExist):
|
||||||
raise Http404()
|
raise Http404()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue