From 4fb9cc1a69f7000e274a2f26d91d2b198bc7c8b1 Mon Sep 17 00:00:00 2001 From: Thomas Kriechbaumer Date: Fri, 26 May 2017 17:58:38 +0200 Subject: [PATCH] fail-safe flowfilter --- mitmproxy/flowfilter.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mitmproxy/flowfilter.py b/mitmproxy/flowfilter.py index 83c98bad4..4edf0413e 100644 --- a/mitmproxy/flowfilter.py +++ b/mitmproxy/flowfilter.py @@ -344,6 +344,8 @@ class FUrl(_Rex): @only(http.HTTPFlow) def __call__(self, f): + if not f.request: + return False return self.re.search(f.request.pretty_url)