diff options
author | vulnminer <vulnminer@gmail.com> | 2016-09-17 18:45:37 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-17 18:45:37 +0300 |
commit | e1f021d732494fbb1132b0aa71a64561845d30ca (patch) | |
tree | c971f5af70e7f7d394eb86f3ef9467410338fe58 | |
parent | f17c0fdac636f7269f4885294e2a8d2c52c23590 (diff) | |
download | mitmproxy-e1f021d732494fbb1132b0aa71a64561845d30ca.tar.gz mitmproxy-e1f021d732494fbb1132b0aa71a64561845d30ca.tar.bz2 mitmproxy-e1f021d732494fbb1132b0aa71a64561845d30ca.zip |
Update app.py
-rw-r--r-- | mitmproxy/web/app.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mitmproxy/web/app.py b/mitmproxy/web/app.py index c92ba4d3..5498c2d9 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): |