Fix for UTF8 uploader

This commit is contained in:
AnthorNet 2019-04-29 15:31:10 +02:00 committed by GitHub
parent 52a7061d8f
commit 9484f4646a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -62,7 +62,7 @@ class Relay(Thread):
now = time.time()
if now - self.uploader_nonce_timestamp > self.REGENERATE_UPLOADER_NONCE_INTERVAL:
self.generate_uploader_nonce()
return hashlib.sha1("{}-{}".format(self.uploader_nonce, uploader)).hexdigest()
return hashlib.sha1("{}-{}".format(self.uploader_nonce, uploader.encode('utf8'))).hexdigest()
def run(self):
"""