forked from Kelder/cammiechat
fixed errer
This commit is contained in:
parent
f9cd1e319e
commit
232c3bc9bf
1 changed files with 1 additions and 1 deletions
2
chat.py
2
chat.py
|
@ -92,7 +92,7 @@ def messages_post():
|
||||||
if sender != "somebody":
|
if sender != "somebody":
|
||||||
message = "<" + sender + "> " + message.decode()
|
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
|
url = 'http://10.0.5.42:8000/' # Set destination URL here
|
||||||
post_fields = {'X-Messages': base64.b64encode(message)}
|
post_fields = {'X-Messages': base64.b64encode(message)}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue