diff options
author | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2015-07-30 13:52:50 +0200 |
---|---|---|
committer | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2015-07-30 19:53:29 +0200 |
commit | 4f38c6b90e239d192863dee271e267b498c72206 (patch) | |
tree | f41642541100a191cc2a92ce3d5a293697f7dae0 /libmproxy/console/common.py | |
parent | a5d9e1f44dbe0fc6fee174b1953806f9b148b5ad (diff) | |
download | mitmproxy-4f38c6b90e239d192863dee271e267b498c72206.tar.gz mitmproxy-4f38c6b90e239d192863dee271e267b498c72206.tar.bz2 mitmproxy-4f38c6b90e239d192863dee271e267b498c72206.zip |
attach application protocol to connection
Diffstat (limited to 'libmproxy/console/common.py')
-rw-r--r-- | libmproxy/console/common.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libmproxy/console/common.py b/libmproxy/console/common.py index 5ce2c0b7..1940e390 100644 --- a/libmproxy/console/common.py +++ b/libmproxy/console/common.py @@ -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: |