mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2025-02-01 07:49:10 +00:00
Escape special characters in first line error log.
This commit is contained in:
parent
8d8ede7e26
commit
1e93e42883
@ -30,7 +30,7 @@ class PathodHandler(tcp.BaseHandler):
|
||||
|
||||
parts = http.parse_init_http(line)
|
||||
if not parts:
|
||||
s = "Invalid first line: %s"%line.rstrip()
|
||||
s = "Invalid first line: %s"%repr(line)
|
||||
self.info(s)
|
||||
self.server.add_log(
|
||||
dict(
|
||||
|
@ -122,7 +122,6 @@ class _DaemonTests:
|
||||
assert "Invalid" in l["msg"]
|
||||
|
||||
|
||||
|
||||
class TestDaemon(_DaemonTests):
|
||||
SSL = False
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user