Escape special characters in first line error log.

This commit is contained in:
Aldo Cortesi 2012-07-22 12:40:27 +12:00
parent 8d8ede7e26
commit 1e93e42883
2 changed files with 1 additions and 2 deletions

View File

@ -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(

View File

@ -122,7 +122,6 @@ class _DaemonTests:
assert "Invalid" in l["msg"]
class TestDaemon(_DaemonTests):
SSL = False