This commit is contained in:
jonaswinkler 2021-02-09 21:53:10 +01:00
parent 881e644d2a
commit c7b46f43b8

View File

@ -291,6 +291,8 @@ class DocumentViewSet(RetrieveModelMixin,
handle = GnuPG.decrypted(doc.thumbnail_file)
else:
handle = doc.thumbnail_file
# TODO: Send ETag information and use that to send new thumbnails
# if available
return HttpResponse(handle,
content_type='image/png')
except (FileNotFoundError, Document.DoesNotExist):