mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-02 13:45:10 -05:00
todo note #520
This commit is contained in:
parent
887dd122fe
commit
7d67766508
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user