Change ascii to utf8

This commit is contained in:
redfast00 2019-08-22 19:45:52 +02:00
parent 4de4461947
commit 1be146baf8
No known key found for this signature in database
GPG key ID: 5946E0E34FD0553C

View file

@ -78,7 +78,7 @@ class SimpleHTTPRequestHandler(BaseHTTPRequestHandler):
def do_POST(self):
print(self.headers)
message = base64.b64decode(self.headers['X-Messages']).decode('ascii')
message = base64.b64decode(self.headers['X-Messages']).decode('utf8')
self.send_response(200)
self.end_headers()
response = BytesIO()