aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Shao <me@matshao.com>2017-02-14 21:21:39 +0800
committerMatthew Shao <me@matshao.com>2017-02-14 21:21:39 +0800
commit9b9d72594c9d7c6c2a10a943adb1934384adda59 (patch)
treecf16cccc1cf0b565c6bef2317c383cf3f7c75210
parent75a0a4c09276ef2aa479c9ae9feab97f7803ed6d (diff)
downloadmitmproxy-9b9d72594c9d7c6c2a10a943adb1934384adda59.tar.gz
mitmproxy-9b9d72594c9d7c6c2a10a943adb1934384adda59.tar.bz2
mitmproxy-9b9d72594c9d7c6c2a10a943adb1934384adda59.zip
fix websocket message display crash in console.
-rw-r--r--mitmproxy/tools/console/master.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mitmproxy/tools/console/master.py b/mitmproxy/tools/console/master.py
index a33a9823..4ab9e1f4 100644
--- a/mitmproxy/tools/console/master.py
+++ b/mitmproxy/tools/console/master.py
@@ -412,7 +412,7 @@ class ConsoleMaster(master.Master):
def websocket_message(self, f):
super().websocket_message(f)
message = f.messages[-1]
- signals.add_log(message.info, "info")
+ signals.add_log(f.message_info(message), "info")
signals.add_log(strutils.bytes_to_escaped_str(message.content), "debug")
@controller.handler