diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2012-09-24 10:08:18 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2012-09-24 10:08:18 +1200 |
commit | 0dd250d4f886cfa7cf91e3690b4196acfe3740ce (patch) | |
tree | 1f1dc9f9fd9906daed874b9a9ad113d2eab76f5d /libpathod/utils.py | |
parent | 9db2bcabad9d6ec78ebf55a8a43d41f8340d8f71 (diff) | |
download | mitmproxy-0dd250d4f886cfa7cf91e3690b4196acfe3740ce.tar.gz mitmproxy-0dd250d4f886cfa7cf91e3690b4196acfe3740ce.tar.bz2 mitmproxy-0dd250d4f886cfa7cf91e3690b4196acfe3740ce.zip |
Fix utils.get_header case handling.
Diffstat (limited to 'libpathod/utils.py')
-rw-r--r-- | libpathod/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libpathod/utils.py b/libpathod/utils.py index 7a1e533f..ac0c0e4c 100644 --- a/libpathod/utils.py +++ b/libpathod/utils.py @@ -27,7 +27,7 @@ def get_header(val, headers): Header keys may be Values, so we have to "generate" them as we try the match. """ for k, v in headers: - if len(k) == len(val) and k[:].lower() == val: + if len(k) == len(val) and k[:].lower() == val.lower(): return v return None |