From a5d9e1f44dbe0fc6fee174b1953806f9b148b5ad Mon Sep 17 00:00:00 2001 From: Thomas Kriechbaumer Date: Wed, 29 Jul 2015 11:39:53 +0200 Subject: move code to netlib and implement protocols --- examples/ignore_websocket.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/ignore_websocket.py') diff --git a/examples/ignore_websocket.py b/examples/ignore_websocket.py index b52f18f8..479d0984 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.response.assemble()) + flow.client_conn.send(flow.client_protocol.assemble(flow.response)) # ...and then delegate to tcp passthrough. TCPHandler(flow.live.c, log=False).handle_messages() flow.reply(KILL) -- cgit v1.2.3