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
1 changed files with 1 additions and 1 deletions

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()