From 28c7eb17c0c7a9beae4b81b1d7730dfbece8076e Mon Sep 17 00:00:00 2001 From: jplochocki Date: Sun, 18 Mar 2018 16:16:03 +0100 Subject: [PATCH] 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") --- mitmproxy/addons/cut.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mitmproxy/addons/cut.py b/mitmproxy/addons/cut.py index f9874038a..f7fbc0c85 100644 --- a/mitmproxy/addons/cut.py +++ b/mitmproxy/addons/cut.py @@ -129,7 +129,7 @@ class Cut: if isinstance(v, bytes): fp.write(strutils.always_str(v)) else: - fp.write("utf8") + fp.write(v) ctx.log.alert("Clipped single cut.") else: writer = csv.writer(fp)