aboutsummaryrefslogtreecommitdiffstats
path: root/test/mitmproxy/addons/test_anticache.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/mitmproxy/addons/test_anticache.py')
-rw-r--r--test/mitmproxy/addons/test_anticache.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/mitmproxy/addons/test_anticache.py b/test/mitmproxy/addons/test_anticache.py
index 928f2180..d1765fe0 100644
--- a/test/mitmproxy/addons/test_anticache.py
+++ b/test/mitmproxy/addons/test_anticache.py
@@ -7,7 +7,7 @@ from mitmproxy.test import taddons
class TestAntiCache:
def test_simple(self):
sa = anticache.AntiCache()
- with taddons.context() as tctx:
+ with taddons.context(sa) as tctx:
f = tflow.tflow(resp=True)
f.request.headers["if-modified-since"] = "test"
f.request.headers["if-none-match"] = "test"