diff options
author | Matthew Shao <me@matshao.com> | 2017-02-14 21:21:39 +0800 |
---|---|---|
committer | Matthew Shao <me@matshao.com> | 2017-02-14 21:21:39 +0800 |
commit | 9b9d72594c9d7c6c2a10a943adb1934384adda59 (patch) | |
tree | cf16cccc1cf0b565c6bef2317c383cf3f7c75210 | |
parent | 75a0a4c09276ef2aa479c9ae9feab97f7803ed6d (diff) | |
download | mitmproxy-9b9d72594c9d7c6c2a10a943adb1934384adda59.tar.gz mitmproxy-9b9d72594c9d7c6c2a10a943adb1934384adda59.tar.bz2 mitmproxy-9b9d72594c9d7c6c2a10a943adb1934384adda59.zip |
fix websocket message display crash in console.
-rw-r--r-- | mitmproxy/tools/console/master.py | 2 |
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 |