diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2011-02-04 10:05:07 +1300 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2011-02-04 10:58:08 +1300 |
commit | 2ad4c5adf38e627fc4534548610235ce1c590c66 (patch) | |
tree | ea69fd85721f51cfe84baa08ff3e326fe15bab2c /test/utils.py | |
parent | 2cb7429d38243d95664791d3edd7c4894efd6ee9 (diff) | |
download | mitmproxy-2ad4c5adf38e627fc4534548610235ce1c590c66.tar.gz mitmproxy-2ad4c5adf38e627fc4534548610235ce1c590c66.tar.bz2 mitmproxy-2ad4c5adf38e627fc4534548610235ce1c590c66.zip |
Get rid of ReplayConnection - we now have only one ClientConnection class.
Diffstat (limited to 'test/utils.py')
-rw-r--r-- | test/utils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/utils.py b/test/utils.py index 07145d6b..94463b6a 100644 --- a/test/utils.py +++ b/test/utils.py @@ -2,7 +2,7 @@ from libmproxy import proxy, utils, filt, flow def treq(conn=None): if not conn: - conn = proxy.ClientConnection("address", 22) + conn = proxy.ClientConnection(("address", 22)) headers = utils.Headers() headers["header"] = ["qvalue"] return proxy.Request(conn, "host", 80, "http", "GET", "/path", headers, "content") @@ -17,6 +17,6 @@ def tresp(req=None): def tflow(): - bc = proxy.ClientConnection("address", 22) + bc = proxy.ClientConnection(("address", 22)) return flow.Flow(bc) |