mitmproxy/test/scripts/stream_modify.py
Maximilian Hils 63844df343 fix streaming
2015-08-29 14:28:11 +02:00

8 lines
159 B
Python

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