mirror of
https://github.com/zhigang1992/mitmproxy.git
synced 2026-04-26 05:14:57 +08:00
attach application protocol to connection
This commit is contained in:
@@ -252,7 +252,7 @@ def copy_flow_format_data(part, scope, flow):
|
||||
return None, "Request content is missing"
|
||||
with decoded(flow.request):
|
||||
if part == "h":
|
||||
data += flow.client_protocol.assemble(flow.request)
|
||||
data += flow.client_conn.protocol.assemble(flow.request)
|
||||
elif part == "c":
|
||||
data += flow.request.content
|
||||
else:
|
||||
@@ -265,7 +265,7 @@ def copy_flow_format_data(part, scope, flow):
|
||||
return None, "Response content is missing"
|
||||
with decoded(flow.response):
|
||||
if part == "h":
|
||||
data += flow.client_protocol.assemble(flow.response)
|
||||
data += flow.client_conn.protocol.assemble(flow.response)
|
||||
elif part == "c":
|
||||
data += flow.response.content
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user