aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorHenrik Nordstrom <henrik@henriknordstrom.net>2011-02-15 18:44:57 +0100
committerHenrik Nordstrom <henrik@henriknordstrom.net>2011-02-15 22:24:38 +0100
commit89627a702a6159542917e3cb499079caa75783c7 (patch)
tree4d62d159bb7debf878f1bb2b83dce11cb4cf605f /test
parent759496e24eeef8572f8f57e47254e7df0b178d19 (diff)
downloadmitmproxy-89627a702a6159542917e3cb499079caa75783c7.tar.gz
mitmproxy-89627a702a6159542917e3cb499079caa75783c7.tar.bz2
mitmproxy-89627a702a6159542917e3cb499079caa75783c7.zip
drop unused protocol parameter from Response
Diffstat (limited to 'test')
-rw-r--r--test/test_filt.py1
-rw-r--r--test/test_proxy.py2
-rw-r--r--test/utils.py2
3 files changed, 2 insertions, 3 deletions
diff --git a/test/test_filt.py b/test/test_filt.py
index 43addd3e..6f8579d3 100644
--- a/test/test_filt.py
+++ b/test/test_filt.py
@@ -93,7 +93,6 @@ class uMatching(libpry.AutoTree):
return proxy.Response(
q,
200,
- "HTTP/1.1",
"message",
headers,
"content_response"
diff --git a/test/test_proxy.py b/test/test_proxy.py
index 39689746..bb1a2122 100644
--- a/test/test_proxy.py
+++ b/test/test_proxy.py
@@ -237,7 +237,7 @@ class uResponse(libpry.AutoTree):
h["test"] = ["test"]
c = proxy.ClientConnection(("addr", 2222))
req = proxy.Request(c, "host", 22, "https", "GET", "/", h, "content")
- resp = proxy.Response(req, 200, "HTTP", "msg", h.copy(), "content")
+ resp = proxy.Response(req, 200, "msg", h.copy(), "content")
assert resp.short()
assert resp.assemble()
diff --git a/test/utils.py b/test/utils.py
index 94463b6a..b63c48dc 100644
--- a/test/utils.py
+++ b/test/utils.py
@@ -13,7 +13,7 @@ def tresp(req=None):
req = treq()
headers = utils.Headers()
headers["header_response"] = ["svalue"]
- return proxy.Response(req, 200, "HTTP/1.1", "message", headers, "content_response")
+ return proxy.Response(req, 200, "message", headers, "content_response")
def tflow():