From 891fa50e554963ef7cf236b087cfbedfaf19849e Mon Sep 17 00:00:00 2001 From: Thomas Kriechbaumer Date: Sun, 9 Aug 2015 22:15:58 +0200 Subject: move code to netlib --- libmproxy/console/contentview.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libmproxy/console/contentview.py') 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")), -- cgit v1.2.3