fixed errer

This commit is contained in:
Hannes Klinckaert 2019-09-03 00:43:53 +02:00
parent f9cd1e319e
commit 232c3bc9bf

View file

@ -92,7 +92,7 @@ def messages_post():
if sender != "somebody":
message = "<" + sender + "> " + message.decode()
messages.append(Message(time, sender, sendertype, str(message, "UTF-8")))
messages.append(Message(time, sender, sendertype, message))
url = 'http://10.0.5.42:8000/' # Set destination URL here
post_fields = {'X-Messages': base64.b64encode(message)}