Skip to content

Commit

Permalink
temporarily not to replace LF with NEL due to GNOME Terminal's defaul…
Browse files Browse the repository at this point in the history
  • Loading branch information
inaz2 committed Nov 13, 2014
1 parent af075b6 commit 3c06532
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion CatHeadersProxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ def save_handler(self, req, reqbody, res, resbody):
%s %d %s
%s
""" % (req.requestline, str(req.headers), reqbody, self.version_table[res.version], res.status, res.reason, str(res.headers))
print text.replace('\n', '\x1bE') # use NEL control character for line break (useful for grep)
# print text.replace('\n', '\x1bE') # use NEL control character for line break (useful for grep)
print text
sys.stdout.flush()


Expand Down
3 changes: 2 additions & 1 deletion SSLBumpCatHeadersProxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ def save_handler(self, req, reqbody, res, resbody):
%s %d %s
%s
""" % (req.requestline, str(req.headers), reqbody, self.version_table[res.version], res.status, res.reason, str(res.headers))
print text.replace('\n', '\x1bE') # use NEL control character for line break (useful for grep)
# print text.replace('\n', '\x1bE') # use NEL control character for line break (useful for grep)
print text
sys.stdout.flush()


Expand Down
3 changes: 2 additions & 1 deletion SSLStripCatHeadersProxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ def save_handler(self, req, reqbody, res, resbody):
%s %d %s
%s
""" % (req.requestline, str(req.headers), reqbody, self.version_table[res.version], res.status, res.reason, str(res.headers))
print text.replace('\n', '\x1bE') # use NEL control character for line break (useful for grep)
# print text.replace('\n', '\x1bE') # use NEL control character for line break (useful for grep)
print text
sys.stdout.flush()


Expand Down

0 comments on commit 3c06532

Please sign in to comment.