mitmproxy/test/scripts/stream_modify.py
Maximilian Hils e1b6cf9401 fix #319
2015-02-27 15:24:27 +01:00

7 lines
194 B
Python

def modify(chunks):
for prefix, content, suffix in chunks:
yield prefix, content.replace("foo", "bar"), suffix
def responseheaders(context, flow):
flow.response.stream = modify