Skip to content

Commit

Permalink
use flow.id to link websocket + handshake flows
Browse files Browse the repository at this point in the history
  • Loading branch information
Kriechi committed Mar 10, 2017
1 parent b1dd86d commit 49e0f23
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mitmproxy/proxy/protocol/websocket.py
Expand Up @@ -140,7 +140,8 @@ def _handle_unknown_frame(self, frame, source_conn, other_conn, is_server):

def __call__(self):
self.flow = WebSocketFlow(self.client_conn, self.server_conn, self.handshake_flow, self)
self.handshake_flow.metadata['websocket_flow'] = self.flow
self.flow.metadata['websocket_handshake'] = self.handshake_flow.id
self.handshake_flow.metadata['websocket_flow'] = self.flow.id
self.channel.ask("websocket_start", self.flow)

client = self.client_conn.connection
Expand Down

0 comments on commit 49e0f23

Please sign in to comment.