Change ascii to utf8
This commit is contained in:
parent
4de4461947
commit
1be146baf8
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue