Merge pull request #819 from tekii/hotfix-broken-copy

fix copy to clipboard command when copying content
This commit is contained in:
Maximilian Hils 2015-11-05 04:17:08 +01:00
commit de5df2e4d4

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: