aboutsummaryrefslogtreecommitdiffstats
path: root/libmproxy/proxy.py
diff options
context:
space:
mode:
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: