attach application protocol to connection

This commit is contained in:
Thomas Kriechbaumer
2015-07-30 13:52:50 +02:00
parent a5d9e1f44d
commit 4f38c6b90e
5 changed files with 67 additions and 46 deletions

View File

@@ -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: