forked from indymedia/epicyon
binary
parent
3ff2d27697
commit
bf1d65ea57
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue