diff options
author | Aldo Cortesi <aldo@corte.si> | 2016-06-02 13:14:56 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@corte.si> | 2016-06-02 13:14:56 +1200 |
commit | 07f7905f9182ad0098a5a2e37d40ce9b27298380 (patch) | |
tree | 76ba04357353645f49e0f4bd8d835e471239b54b /netlib/http/headers.py | |
parent | eaa3b308f7bb48256ccf56ea07d008fa5f9dd6ad (diff) | |
parent | 09da1febbd9beac5ef5650274899439f5ce10e98 (diff) | |
download | mitmproxy-07f7905f9182ad0098a5a2e37d40ce9b27298380.tar.gz mitmproxy-07f7905f9182ad0098a5a2e37d40ce9b27298380.tar.bz2 mitmproxy-07f7905f9182ad0098a5a2e37d40ce9b27298380.zip |
Merge pull request #1191 from cortesi/utils
Utils reorganisation
Diffstat (limited to 'netlib/http/headers.py')
-rw-r--r-- | netlib/http/headers.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/netlib/http/headers.py b/netlib/http/headers.py index 9bf4b69d..14888ea9 100644 --- a/netlib/http/headers.py +++ b/netlib/http/headers.py @@ -4,7 +4,7 @@ import re import six from netlib import multidict -from netlib import utils +from netlib import strutils # See also: http://lucumr.pocoo.org/2013/7/2/the-updated-guide-to-unicode/ @@ -20,7 +20,7 @@ else: return x.decode("utf-8", "surrogateescape") def _always_bytes(x): - return utils.always_bytes(x, "utf-8", "surrogateescape") + return strutils.always_bytes(x, "utf-8", "surrogateescape") class Headers(multidict.MultiDict): |