diff options
Diffstat (limited to 'libmproxy/filt.py')
-rw-r--r-- | libmproxy/filt.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libmproxy/filt.py b/libmproxy/filt.py index 31c43581..40cf7358 100644 --- a/libmproxy/filt.py +++ b/libmproxy/filt.py @@ -79,7 +79,7 @@ class _Rex(_Action): raise ValueError, "Cannot compile expression." def _check_content_type(expr, o): - val = o.headers.get("content-type") + val = o.headers["content-type"] if val and re.search(expr, val[0]): return True return False |