diff options
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 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) |