diff options
author | Maximilian Hils <git@maximilianhils.com> | 2016-12-13 14:41:04 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-13 14:41:04 +0100 |
commit | e2c6d7ed0f6d4fb4375d8bb1f372a47f6d43b85b (patch) | |
tree | d461fa1a4796d6a0d6ddfe2372e2d48d418017e4 /test | |
parent | b39380b00fe324a67c107ac2c4a611cbd71b7839 (diff) | |
parent | e5b3c8bed364f10dadb1e81da7f99a6f5531d965 (diff) | |
download | mitmproxy-e2c6d7ed0f6d4fb4375d8bb1f372a47f6d43b85b.tar.gz mitmproxy-e2c6d7ed0f6d4fb4375d8bb1f372a47f6d43b85b.tar.bz2 mitmproxy-e2c6d7ed0f6d4fb4375d8bb1f372a47f6d43b85b.zip |
Merge pull request #1851 from mhils/1850
fix #1850
Diffstat (limited to 'test')
-rw-r--r-- | test/mitmproxy/addons/test_stickyauth.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/mitmproxy/addons/test_stickyauth.py b/test/mitmproxy/addons/test_stickyauth.py index 490e9aac..df74f44d 100644 --- a/test/mitmproxy/addons/test_stickyauth.py +++ b/test/mitmproxy/addons/test_stickyauth.py @@ -15,7 +15,8 @@ def test_configure(): def test_simple(): r = stickyauth.StickyAuth() - with taddons.context(): + with taddons.context() as tctx: + tctx.configure(r, stickyauth=".*") f = tflow.tflow(resp=True) f.request.headers["authorization"] = "foo" r.request(f) |