diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2016-05-31 18:54:42 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2016-05-31 18:54:42 +1200 |
commit | 15b2374ef9d6a8cbafdff7c79694921387836ff3 (patch) | |
tree | 2c7ee11be9c114b23db6ae71183c6f82c2cb2bd8 /netlib/utils.py | |
parent | da074bff01fbf359959eaa1e81b75db42e770b8b (diff) | |
download | mitmproxy-15b2374ef9d6a8cbafdff7c79694921387836ff3.tar.gz mitmproxy-15b2374ef9d6a8cbafdff7c79694921387836ff3.tar.bz2 mitmproxy-15b2374ef9d6a8cbafdff7c79694921387836ff3.zip |
netlib.utils.get_header_tokens -> netlib.http1.read.get_header_tokens
Placing this next to its only use.
Diffstat (limited to 'netlib/utils.py')
-rw-r--r-- | netlib/utils.py | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/netlib/utils.py b/netlib/utils.py index 91da471b..a2d8c97d 100644 --- a/netlib/utils.py +++ b/netlib/utils.py @@ -177,18 +177,6 @@ def is_valid_port(port): return 0 <= port <= 65535 -def get_header_tokens(headers, key): - """ - Retrieve all tokens for a header key. A number of different headers - follow a pattern where each header line can containe comma-separated - tokens, and headers can be set multiple times. - """ - if key not in headers: - return [] - tokens = headers[key].split(",") - return [token.strip() for token in tokens] - - def hostport(scheme, host, port): """ Returns the host component, with a port specifcation if needed. |