mitmproxy/test/scripts/tcp_stream_modify.py
2016-01-27 10:36:28 +01:00

4 lines
116 B
Python

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