mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-22 15:37:45 +00:00
Py3: Split on byte newlines in pathod.log
This commit is contained in:
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):
|
||||
|
Loading…
Reference in New Issue
Block a user