aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2017-03-06 13:42:11 +1300
committerAldo Cortesi <aldo@nullcube.com>2017-03-06 13:48:37 +1300
commit9b1f40da370860afbf75a34ba437092413e872ec (patch)
tree318f8f175a8439746e68de4f80f628448a1bebdf /test
parent71a830c83668aaabf182a03bec0194bde1a36665 (diff)
downloadmitmproxy-9b1f40da370860afbf75a34ba437092413e872ec.tar.gz
mitmproxy-9b1f40da370860afbf75a34ba437092413e872ec.tar.bz2
mitmproxy-9b1f40da370860afbf75a34ba437092413e872ec.zip
Options unification: streamfile
We now have one option to control this. If the path is prefixed with a "+" we append, otherwise we overwrite.
Diffstat (limited to 'test')
-rw-r--r--test/mitmproxy/addons/test_streamfile.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/mitmproxy/addons/test_streamfile.py b/test/mitmproxy/addons/test_streamfile.py
index 89dc2af3..4105c1fc 100644
--- a/test/mitmproxy/addons/test_streamfile.py
+++ b/test/mitmproxy/addons/test_streamfile.py
@@ -59,7 +59,7 @@ def test_simple():
tctx.configure(sa, streamfile=None)
assert rd(p)[0].response
- tctx.configure(sa, streamfile=p, streamfile_append=True)
+ tctx.configure(sa, streamfile="+" + p)
f = tflow.tflow()
sa.request(f)
tctx.configure(sa, streamfile=None)