From e1f021d732494fbb1132b0aa71a64561845d30ca Mon Sep 17 00:00:00 2001 From: vulnminer Date: Sat, 17 Sep 2016 18:45:37 +0300 Subject: [PATCH] Update app.py --- mitmproxy/web/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mitmproxy/web/app.py b/mitmproxy/web/app.py index c92ba4d30..5498c2d96 100644 --- a/mitmproxy/web/app.py +++ b/mitmproxy/web/app.py @@ -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):