diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2012-02-20 10:34:32 +1300 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2012-02-20 10:39:00 +1300 |
commit | 2616f490fee1b732aa0853318d67a550fc561cc4 (patch) | |
tree | b93ebc1f266682f422791fc63ad15ce3d5d0467d /libmproxy/console/connview.py | |
parent | 25a06c3ec18a9ed49f34213024330aed59cb5322 (diff) | |
download | mitmproxy-2616f490fee1b732aa0853318d67a550fc561cc4.tar.gz mitmproxy-2616f490fee1b732aa0853318d67a550fc561cc4.tar.bz2 mitmproxy-2616f490fee1b732aa0853318d67a550fc561cc4.zip |
Rename Headers class to ODict
ODict is an ordered dictionary class that will be useful in many other parts of
our API.
Diffstat (limited to 'libmproxy/console/connview.py')
-rw-r--r-- | libmproxy/console/connview.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libmproxy/console/connview.py b/libmproxy/console/connview.py index ed038a11..b722f78e 100644 --- a/libmproxy/console/connview.py +++ b/libmproxy/console/connview.py @@ -371,7 +371,7 @@ class ConnectionView(common.WWrap): self.master.refresh_connection(self.flow) def set_headers(self, lst, conn): - conn.headers = flow.Headers(lst) + conn.headers = flow.ODict(lst) def set_query(self, lst, conn): conn.set_query(lst) @@ -384,7 +384,7 @@ class ConnectionView(common.WWrap): conn = self.flow.request else: if not self.flow.response: - self.flow.response = flow.Response(self.flow.request, 200, "OK", flow.Headers(), "") + self.flow.response = flow.Response(self.flow.request, 200, "OK", flow.ODict(), "") conn = self.flow.response self.flow.backup() |