aboutsummaryrefslogtreecommitdiffstats
path: root/libmproxy/proxy.py
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 /libmproxy/proxy.py
parent759496e24eeef8572f8f57e47254e7df0b178d19 (diff)
downloadmitmproxy-89627a702a6159542917e3cb499079caa75783c7.tar.gz
mitmproxy-89627a702a6159542917e3cb499079caa75783c7.tar.bz2
mitmproxy-89627a702a6159542917e3cb499079caa75783c7.zip
drop unused protocol parameter from Response
Diffstat (limited to 'libmproxy/proxy.py')
-rw-r--r--libmproxy/proxy.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/libmproxy/proxy.py b/libmproxy/proxy.py
index 280bab93..0941155f 100644
--- a/libmproxy/proxy.py
+++ b/libmproxy/proxy.py
@@ -228,9 +228,9 @@ class Request(controller.Msg):
class Response(controller.Msg):
FMT = '%s\r\n%s\r\n%s'
- def __init__(self, request, code, proto, msg, headers, content, timestamp=None):
+ def __init__(self, request, code, msg, headers, content, timestamp=None):
self.request = request
- self.code, self.proto, self.msg = code, proto, msg
+ self.code, self.msg = code, msg
self.headers, self.content = headers, content
self.timestamp = timestamp or time.time()
self.cached = False
@@ -239,7 +239,6 @@ class Response(controller.Msg):
def get_state(self):
return dict(
code = self.code,
- proto = self.proto,
msg = self.msg,
headers = self.headers.get_state(),
timestamp = self.timestamp,
@@ -251,7 +250,6 @@ class Response(controller.Msg):
return klass(
request,
state["code"],
- state["proto"],
state["msg"],
utils.Headers.from_state(state["headers"]),
state["content"],
@@ -438,7 +436,7 @@ class ServerConnection:
content = None
else:
content = read_http_body(self.rfile, self, headers, True)
- return Response(self.request, code, proto, msg, headers, content)
+ return Response(self.request, code, msg, headers, content)
def terminate(self):
try: