mirror of
https://github.com/vee1e/mitmproxy.git
synced 2026-09-02 10:47:14 +00:00
7 lines
159 B
Python
7 lines
159 B
Python
def modify(chunks):
|
|
for chunk in chunks:
|
|
yield chunk.replace("foo", "bar")
|
|
|
|
|
|
def responseheaders(context, flow):
|
|
flow.response.stream = modify
|