mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 00:01:36 +00:00
Merge pull request #819 from tekii/hotfix-broken-copy
fix copy to clipboard command when copying content
This commit is contained in:
commit
de5df2e4d4
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user