From ff264eb30925914f71e53ff9d3c54bdf112b14b9 Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Thu, 6 Feb 2014 22:16:26 +0100 Subject: add functionality to change the destination server --- libmproxy/protocol/http.py | 1 - 1 file changed, 1 deletion(-) (limited to 'libmproxy/protocol/http.py') diff --git a/libmproxy/protocol/http.py b/libmproxy/protocol/http.py index 59bd8900..2a9f9afe 100644 --- a/libmproxy/protocol/http.py +++ b/libmproxy/protocol/http.py @@ -1001,7 +1001,6 @@ class HTTPHandler(ProtocolHandler, TemporaryServerChangeMixin): if directly_addressed_at_mitmproxy: self.c.set_server_address((request.host, request.port), AddressPriority.FROM_PROTOCOL) request.flow.server_conn = self.c.server_conn # Update server_conn attribute on the flow - self.c.establish_server_connection() self.c.client_conn.wfile.write( 'HTTP/1.1 200 Connection established\r\n' + ('Proxy-agent: %s\r\n' % self.c.server_version) + -- cgit v1.2.3