From ff9476eaaa083b5ba51c1c1619d4ef6ea57d1907 Mon Sep 17 00:00:00 2001 From: Matt Weidner Date: Fri, 21 Jul 2017 13:32:55 -0500 Subject: Fixed boolean evaluation syntax inconsistency --- mitmproxy/addons/intercept.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mitmproxy/addons/intercept.py b/mitmproxy/addons/intercept.py index bac07a91..9e1a283e 100644 --- a/mitmproxy/addons/intercept.py +++ b/mitmproxy/addons/intercept.py @@ -26,7 +26,7 @@ class Intercept: self.filt(f), not f.request.is_replay, ]) - if should_intercept and ctx.options.intercept_active == True: + if should_intercept and ctx.options.intercept_active: f.intercept() # Handlers -- cgit v1.2.3