main
Bob Mottram 2019-12-04 13:57:53 +00:00
parent 3ff2d27697
commit bf1d65ea57
1 changed files with 1 additions and 1 deletions

View File

@ -3541,7 +3541,7 @@ class PubServer(BaseHTTPRequestHandler):
else: else:
with open(mediaFilename, 'rb') as avFile: with open(mediaFilename, 'rb') as avFile:
mediaBinary = avFile.read() mediaBinary = avFile.read()
etag=sha1(data).hexdigest() etag=sha1(mediaBinary).hexdigest()
try: try:
with open(mediaFilename+'.etag', 'w') as etagFile: with open(mediaFilename+'.etag', 'w') as etagFile:
etagFile.write(etag) etagFile.write(etag)