mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-26 18:18:25 +00:00
Update app.py
This commit is contained in:
parent
f17c0fdac6
commit
e1f021d732
@ -116,7 +116,7 @@ class RequestHandler(BasicAuth, tornado.web.RequestHandler):
|
|||||||
def json(self):
|
def json(self):
|
||||||
if not self.request.headers.get("Content-Type").startswith("application/json"):
|
if not self.request.headers.get("Content-Type").startswith("application/json"):
|
||||||
return None
|
return None
|
||||||
return json.loads(self.request.body)
|
return json.loads(self.request.body.decode())
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def state(self):
|
def state(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user