mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 08:11:00 +00:00
Allow http_connect to create a response for CONNECT request so that connection to server be postponed in upstream mode.
This commit is contained in:
parent
d409a6c09a
commit
1004460ba6
@ -217,6 +217,7 @@ class HttpLayer(base.Layer):
|
|||||||
return False
|
return False
|
||||||
|
|
||||||
def handle_upstream_connect(self, f):
|
def handle_upstream_connect(self, f):
|
||||||
|
if not f.response:
|
||||||
self.establish_server_connection(
|
self.establish_server_connection(
|
||||||
f.request.host,
|
f.request.host,
|
||||||
f.request.port,
|
f.request.port,
|
||||||
|
Loading…
Reference in New Issue
Block a user