mirror of
https://github.com/zhigang1992/mitmproxy.git
synced 2026-01-12 22:48:54 +08:00
Py3: Split on byte newlines in pathod.log
This commit is contained in:
committed by
Thomas Kriechbaumer
parent
22a94f06e6
commit
03ce09ca99
@@ -62,7 +62,7 @@ class LogCtx(object):
|
||||
for line in strutils.hexdump(data):
|
||||
self("\t%s %s %s" % line)
|
||||
else:
|
||||
for i in strutils.clean_bin(data).split("\n"):
|
||||
for i in strutils.clean_bin(data).split(b"\n"):
|
||||
self("\t%s" % i)
|
||||
|
||||
def __call__(self, line):
|
||||
|
||||
Reference in New Issue
Block a user