Removes last vestiges of PNG from the tests, code, docs and samples

This commit is contained in:
Trenton Holmes
2022-06-11 14:15:27 -07:00
parent cc4cea1a41
commit 1df517afd3
19 changed files with 14 additions and 60 deletions

View File

@@ -362,11 +362,7 @@ class DocumentViewSet(
handle = doc.thumbnail_file
# TODO: Send ETag information and use that to send new thumbnails
# if available
thumbnail_path = doc.thumbnail_path
if os.path.splitext(thumbnail_path)[1] == ".webp":
content_type = "image/webp"
else:
content_type = "image/png"
content_type = "image/webp"
return HttpResponse(handle, content_type=content_type)
except (FileNotFoundError, Document.DoesNotExist):