aboutsummaryrefslogtreecommitdiffstats
path: root/test/utils.py
diff options
context:
space:
mode:
authorHenrik Nordstrom <henrik@henriknordstrom.net>2011-02-03 23:30:03 +0100
committerHenrik Nordstrom <henrik@henriknordstrom.net>2011-02-03 23:30:03 +0100
commit5bf6482bd08d4eadda36b9b6f67fbf34016c603d (patch)
treed2056001b4f059e4efa06d31884cf33a8b156a17 /test/utils.py
parent2f813fa74818bcaaca8b0182eda004ea91a0d504 (diff)
parent2ad4c5adf38e627fc4534548610235ce1c590c66 (diff)
downloadmitmproxy-5bf6482bd08d4eadda36b9b6f67fbf34016c603d.tar.gz
mitmproxy-5bf6482bd08d4eadda36b9b6f67fbf34016c603d.tar.bz2
mitmproxy-5bf6482bd08d4eadda36b9b6f67fbf34016c603d.zip
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'test/utils.py')
-rw-r--r--test/utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/utils.py b/test/utils.py
index d07cb658..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.BrowserConnection("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.BrowserConnection("address", 22)
+ bc = proxy.ClientConnection(("address", 22))
return flow.Flow(bc)