From 47860b081bd098c4c0659534d4927177eea9742b Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 4 Dec 2019 12:57:12 +0000 Subject: [PATCH] use sha1 for etags --- daemon.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/daemon.py b/daemon.py index 858371ce9..56c18cf4f 100644 --- a/daemon.py +++ b/daemon.py @@ -17,6 +17,7 @@ import email.parser # for saving images from binascii import a2b_base64 from hashlib import sha256 +from hashlib import sha1 from session import createSession from webfinger import webfingerMeta from webfinger import webfingerNodeInfo @@ -396,7 +397,7 @@ class PubServer(BaseHTTPRequestHandler): except: pass if not etag: - etag=sha256(data).hexdigest() + etag=sha1(data).hexdigest() try: with open(mediaFilename+'.etag', 'w') as etagFile: etagFile.write(etag)