Update app.py

This commit is contained in:
vulnminer 2016-09-17 18:45:37 +03:00 committed by GitHub
parent f17c0fdac6
commit e1f021d732

View File

@ -116,7 +116,7 @@ class RequestHandler(BasicAuth, tornado.web.RequestHandler):
def json(self):
if not self.request.headers.get("Content-Type").startswith("application/json"):
return None
return json.loads(self.request.body)
return json.loads(self.request.body.decode())
@property
def state(self):