Fix for UTF8 uploader

This commit is contained in:
AnthorNet authored and GitHub committed 2019-04-29 15:31:10 +02:00
1 parent 52a7061d8f
commit 9484f4646a
1 file changed
+1 -1
+1 -1
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):
"""