mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-26 18:18:25 +00:00
Update cut.py
Line 132: cut.clip command always copy "utf-8" when single cut specified (ie :cut.clip @focus request.method gets "utf-8")
This commit is contained in:
parent
ca75e2738a
commit
28c7eb17c0
@ -129,7 +129,7 @@ class Cut:
|
|||||||
if isinstance(v, bytes):
|
if isinstance(v, bytes):
|
||||||
fp.write(strutils.always_str(v))
|
fp.write(strutils.always_str(v))
|
||||||
else:
|
else:
|
||||||
fp.write("utf8")
|
fp.write(v)
|
||||||
ctx.log.alert("Clipped single cut.")
|
ctx.log.alert("Clipped single cut.")
|
||||||
else:
|
else:
|
||||||
writer = csv.writer(fp)
|
writer = csv.writer(fp)
|
||||||
|
Loading…
Reference in New Issue
Block a user