aboutsummaryrefslogtreecommitdiffstats
path: root/libmproxy/console
diff options
context:
space:
mode:
authorThomas Kriechbaumer <thomas@kriechbaumer.name>2015-08-09 22:15:58 +0200
committerThomas Kriechbaumer <thomas@kriechbaumer.name>2015-08-10 21:04:17 +0200
commit891fa50e554963ef7cf236b087cfbedfaf19849e (patch)
treef6d0347829b3cc7d35027083655b0de3762cef74 /libmproxy/console
parenta10c31c6984f9b6646d2a7bad05ace912ea152a7 (diff)
downloadmitmproxy-891fa50e554963ef7cf236b087cfbedfaf19849e.tar.gz
mitmproxy-891fa50e554963ef7cf236b087cfbedfaf19849e.tar.bz2
mitmproxy-891fa50e554963ef7cf236b087cfbedfaf19849e.zip
move code to netlib
Diffstat (limited to 'libmproxy/console')
-rw-r--r--libmproxy/console/contentview.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/libmproxy/console/contentview.py b/libmproxy/console/contentview.py
index ce5ac6ea..95ea7b17 100644
--- a/libmproxy/console/contentview.py
+++ b/libmproxy/console/contentview.py
@@ -76,7 +76,7 @@ class ViewAuto:
def __call__(self, hdrs, content, limit):
ctype = hdrs.get_first("content-type")
if ctype:
- ct = utils.parse_content_type(ctype) if ctype else None
+ ct = netlib.utils.parse_content_type(ctype) if ctype else None
ct = "%s/%s" % (ct[0], ct[1])
if ct in content_types_map:
return content_types_map[ct][0](hdrs, content, limit)
@@ -241,7 +241,7 @@ class ViewMultipart:
content_types = ["multipart/form-data"]
def __call__(self, hdrs, content, limit):
- v = utils.multipartdecode(hdrs, content)
+ v = netlib.utils.multipartdecode(hdrs, content)
if v:
r = [
urwid.Text(("highlight", "Form data:\n")),