diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2017-03-06 13:42:11 +1300 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2017-03-06 13:48:37 +1300 |
commit | 9b1f40da370860afbf75a34ba437092413e872ec (patch) | |
tree | 318f8f175a8439746e68de4f80f628448a1bebdf /test | |
parent | 71a830c83668aaabf182a03bec0194bde1a36665 (diff) | |
download | mitmproxy-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.py | 2 |
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) |