mitmproxy/test/scripts/tcp_stream_modify.py
2016-01-10 13:05:01 -05:00

4 lines
115 B
Python

def tcp_message(ctx,tm):
if tm.sender == tm.server_conn:
tm.message = tm.message.replace("foo", "bar")