aboutsummaryrefslogtreecommitdiffstats
path: root/mitmproxy/contentviews.py
diff options
context:
space:
mode:
Diffstat (limited to 'mitmproxy/contentviews.py')
-rw-r--r--mitmproxy/contentviews.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mitmproxy/contentviews.py b/mitmproxy/contentviews.py
index 7c9e4ba1..de88c9ea 100644
--- a/mitmproxy/contentviews.py
+++ b/mitmproxy/contentviews.py
@@ -600,7 +600,7 @@ def safe_to_print(lines, encoding="utf8"):
try:
text = strutils.clean_bin(text.decode(encoding, "strict"))
except UnicodeDecodeError:
- text = strutils.clean_bin(text).decode(encoding, "strict")
+ text = strutils.clean_bin(text)
clean_line.append((style, text))
yield clean_line