aboutsummaryrefslogtreecommitdiffstats
path: root/test/scripts/stream_modify.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/scripts/stream_modify.py')
-rw-r--r--test/scripts/stream_modify.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/scripts/stream_modify.py b/test/scripts/stream_modify.py
new file mode 100644
index 00000000..9a98a7ee
--- /dev/null
+++ b/test/scripts/stream_modify.py
@@ -0,0 +1,7 @@
+def modify(chunks):
+ for prefix, content, suffix in chunks:
+ yield prefix, content.replace("foo", "bar"), suffix
+
+
+def responseheaders(context, flow):
+ flow.response.stream = modify \ No newline at end of file