fix copy to clipboard command when copying content

This commit is contained in:
Marcelo Glezer 2015-11-05 00:09:22 -03:00
parent fb463f50ed
commit 6b6b0a9416

View File

@ -256,7 +256,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_conn.protocol.assemble(flow.request)
data += netlib.http.http1.assemble_request(flow.request)
elif part == "c":
data += flow.request.content
else:
@ -269,7 +269,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_conn.protocol.assemble(flow.response)
data += netlib.http.http1.assemble_response(flow.response)
elif part == "c":
data += flow.response.content
else: