diff --git a/actors/src/udsactor/httpserver.py b/actors/src/udsactor/httpserver.py index 7b4c3d16..a59392f7 100644 --- a/actors/src/udsactor/httpserver.py +++ b/actors/src/udsactor/httpserver.py @@ -116,8 +116,8 @@ class HTTPServerHandler(BaseHTTPServer.BaseHTTPRequestHandler): try: HTTPServerHandler.lock.acquire() - length = int(self.headers.getheader('content-length')) - content = self.rfile.read(length) + length = int(self.headers.get('content-length')) + content = self.rfile.read(length).decode('utf8') logger.debug('length: {}, content >>{}<<'.format(length, content)) params = json.loads(content)