From 9b1f40da370860afbf75a34ba437092413e872ec Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Mon, 6 Mar 2017 13:42:11 +1300 Subject: Options unification: streamfile We now have one option to control this. If the path is prefixed with a "+" we append, otherwise we overwrite. --- test/mitmproxy/addons/test_streamfile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') 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) -- cgit v1.2.3