aboutsummaryrefslogtreecommitdiffstats
path: root/pathod/protocols
diff options
context:
space:
mode:
authorShadab Zafar <dufferzafar0@gmail.com>2016-06-08 16:37:56 +0530
committerThomas Kriechbaumer <thomas@kriechbaumer.name>2016-06-15 09:49:38 +0200
commitd9b940c21e7729da1b6a63d8e82cd3ad4a82f775 (patch)
treebc2faa31a34bf7496174cabac402ed1c03c9d314 /pathod/protocols
parent0f1aa2b78e1c22da16a482aedae4ed9800830007 (diff)
downloadmitmproxy-d9b940c21e7729da1b6a63d8e82cd3ad4a82f775.tar.gz
mitmproxy-d9b940c21e7729da1b6a63d8e82cd3ad4a82f775.tar.bz2
mitmproxy-d9b940c21e7729da1b6a63d8e82cd3ad4a82f775.zip
Py3: websockets
Diffstat (limited to 'pathod/protocols')
-rw-r--r--pathod/protocols/websockets.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pathod/protocols/websockets.py b/pathod/protocols/websockets.py
index 2b60e618..a34e75e8 100644
--- a/pathod/protocols/websockets.py
+++ b/pathod/protocols/websockets.py
@@ -37,7 +37,7 @@ class WebsocketsProtocol:
if frm.payload.startswith(ld):
nest = frm.payload[len(ld):]
try:
- wf_gen = language.parse_websocket_frame(nest)
+ wf_gen = language.parse_websocket_frame(nest.decode())
except language.exceptions.ParseException as v:
logger.write(
"Parse error in reflected frame specifcation:"