diff options
author | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2015-07-30 13:52:50 +0200 |
---|---|---|
committer | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2015-07-30 19:53:29 +0200 |
commit | 4f38c6b90e239d192863dee271e267b498c72206 (patch) | |
tree | f41642541100a191cc2a92ce3d5a293697f7dae0 /examples | |
parent | a5d9e1f44dbe0fc6fee174b1953806f9b148b5ad (diff) | |
download | mitmproxy-4f38c6b90e239d192863dee271e267b498c72206.tar.gz mitmproxy-4f38c6b90e239d192863dee271e267b498c72206.tar.bz2 mitmproxy-4f38c6b90e239d192863dee271e267b498c72206.zip |
attach application protocol to connection
Diffstat (limited to 'examples')
-rw-r--r-- | examples/ignore_websocket.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/ignore_websocket.py b/examples/ignore_websocket.py index 479d0984..bea7e565 100644 --- a/examples/ignore_websocket.py +++ b/examples/ignore_websocket.py @@ -30,7 +30,7 @@ def response(context, flow): value = flow.response.headers.get_first("Connection", None) if value and value.upper() == "UPGRADE": # We need to send the response manually now... - flow.client_conn.send(flow.client_protocol.assemble(flow.response)) + flow.client_conn.send(flow.client_conn.protocol.assemble(flow.response)) # ...and then delegate to tcp passthrough. TCPHandler(flow.live.c, log=False).handle_messages() flow.reply(KILL) |