mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-26 18:18:25 +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):
|
for line in strutils.hexdump(data):
|
||||||
self("\t%s %s %s" % line)
|
self("\t%s %s %s" % line)
|
||||||
else:
|
else:
|
||||||
for i in strutils.clean_bin(data).split("\n"):
|
for i in strutils.clean_bin(data).split(b"\n"):
|
||||||
self("\t%s" % i)
|
self("\t%s" % i)
|
||||||
|
|
||||||
def __call__(self, line):
|
def __call__(self, line):
|
||||||
|
Loading…
Reference in New Issue
Block a user