aboutsummaryrefslogtreecommitdiffstats
path: root/libmproxy/filt.py
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2014-09-03 23:44:54 +0200
committerMaximilian Hils <git@maximilianhils.com>2014-09-03 23:44:54 +0200
commit2f44b26b4cd014e03dd62a125d79af9b81663a93 (patch)
tree732a02fe5d0283ccd98513bfaa2c8d65bb81dd54 /libmproxy/filt.py
parentcd43c5ba9c2981aeffee354cbcb574b6f5e435ba (diff)
downloadmitmproxy-2f44b26b4cd014e03dd62a125d79af9b81663a93.tar.gz
mitmproxy-2f44b26b4cd014e03dd62a125d79af9b81663a93.tar.bz2
mitmproxy-2f44b26b4cd014e03dd62a125d79af9b81663a93.zip
improve HTTPRequest syntax
Diffstat (limited to 'libmproxy/filt.py')
-rw-r--r--libmproxy/filt.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/libmproxy/filt.py b/libmproxy/filt.py
index 925dbfbb..7d2bd737 100644
--- a/libmproxy/filt.py
+++ b/libmproxy/filt.py
@@ -208,7 +208,7 @@ class FDomain(_Rex):
code = "d"
help = "Domain"
def __call__(self, f):
- return bool(re.search(self.expr, f.request.get_host(False, f), re.IGNORECASE))
+ return bool(re.search(self.expr, f.request.host, re.IGNORECASE))
class FUrl(_Rex):
@@ -222,7 +222,7 @@ class FUrl(_Rex):
return klass(*toks)
def __call__(self, f):
- return re.search(self.expr, f.request.get_url(False, f))
+ return re.search(self.expr, f.request.url)
class _Int(_Action):