diff options
author | Henrik Nordstrom <henrik@henriknordstrom.net> | 2011-02-15 18:44:57 +0100 |
---|---|---|
committer | Henrik Nordstrom <henrik@henriknordstrom.net> | 2011-02-15 22:24:38 +0100 |
commit | 89627a702a6159542917e3cb499079caa75783c7 (patch) | |
tree | 4d62d159bb7debf878f1bb2b83dce11cb4cf605f /libmproxy | |
parent | 759496e24eeef8572f8f57e47254e7df0b178d19 (diff) | |
download | mitmproxy-89627a702a6159542917e3cb499079caa75783c7.tar.gz mitmproxy-89627a702a6159542917e3cb499079caa75783c7.tar.bz2 mitmproxy-89627a702a6159542917e3cb499079caa75783c7.zip |
drop unused protocol parameter from Response
Diffstat (limited to 'libmproxy')
-rw-r--r-- | libmproxy/proxy.py | 8 |
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: |