diff options
Diffstat (limited to 'libmproxy/flow.py')
-rw-r--r-- | libmproxy/flow.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/libmproxy/flow.py b/libmproxy/flow.py index 57a9310a..2499db4e 100644 --- a/libmproxy/flow.py +++ b/libmproxy/flow.py @@ -367,9 +367,6 @@ class Request(HTTPMsg): self.scheme, self.host, self.port, self.path = parts return True - def _is_response(self): - return False - def _assemble(self, _proxy = False): """ Assembles the request for transmission to the server. We make some @@ -534,9 +531,6 @@ class Response(HTTPMsg): c.headers = self.headers.copy() return c - def _is_response(self): - return True - def _assemble(self): """ Assembles the response for transmission to the client. We make some @@ -942,6 +936,8 @@ class Flow: return f(self.response) elif self.request: return f(self.request) + elif self.error: + return f(self.error) else: return True |