change decode again

This commit is contained in:
Hannes Klinckaert 2019-09-03 00:33:45 +02:00
parent b6a9975f61
commit f9cd1e319e

View file

@ -90,7 +90,7 @@ def messages_post():
return "OK" return "OK"
if sender != "somebody": if sender != "somebody":
message = "<" + sender.decode() + "> " + message message = "<" + sender + "> " + message.decode()
messages.append(Message(time, sender, sendertype, str(message, "UTF-8"))) messages.append(Message(time, sender, sendertype, str(message, "UTF-8")))
url = 'http://10.0.5.42:8000/' # Set destination URL here url = 'http://10.0.5.42:8000/' # Set destination URL here