diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2015-05-02 16:17:00 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2015-05-02 16:17:00 +1200 |
commit | 9109b3cc8cca05f34d3ddee062cf7f8bc401af31 (patch) | |
tree | 2d1f2f4ed115a9bc7c26eb87e697b34fe860368f /libpathod/utils.py | |
parent | 601cdf70c7339a59537cc8402e4f2648f398b28d (diff) | |
download | mitmproxy-9109b3cc8cca05f34d3ddee062cf7f8bc401af31.tar.gz mitmproxy-9109b3cc8cca05f34d3ddee062cf7f8bc401af31.tar.bz2 mitmproxy-9109b3cc8cca05f34d3ddee062cf7f8bc401af31.zip |
Massive refactoring to split up language implementation.
Diffstat (limited to 'libpathod/utils.py')
-rw-r--r-- | libpathod/utils.py | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/libpathod/utils.py b/libpathod/utils.py index 431ba747..e1ec013f 100644 --- a/libpathod/utils.py +++ b/libpathod/utils.py @@ -44,17 +44,6 @@ def parse_size(s): raise ValueError("Invalid size specification.") -def get_header(val, headers): - """ - Header keys may be Values, so we have to "generate" them as we try the match. - """ - for h in headers: - k = h.key.get_generator({}) - if len(k) == len(val) and k[:].lower() == val.lower(): - return h - return None - - def parse_anchor_spec(s): """ Return a tuple, or None on error. |