mitmproxy/test/scripts/tcp_stream_modify.py

4 lines
116 B
Python
Raw Normal View History

2016-01-27 09:12:18 +00:00
def tcp_message(ctx, tm):
2016-01-02 15:00:27 +00:00
if tm.sender == tm.server_conn:
tm.message = tm.message.replace("foo", "bar")