From 7d96ff00efd80b11ab35f7f1c9c7dd6aff9c9032 Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Fri, 31 Jan 2014 03:01:51 +0100 Subject: remove _flow_map from state, improve logging --- libmproxy/protocol/http.py | 1 + libmproxy/protocol/tcp.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'libmproxy/protocol') diff --git a/libmproxy/protocol/http.py b/libmproxy/protocol/http.py index fcfc53b8..29cdf446 100644 --- a/libmproxy/protocol/http.py +++ b/libmproxy/protocol/http.py @@ -874,6 +874,7 @@ class HTTPFlow(Flow): c += self.response.replace(pattern, repl, *args, **kwargs) return c + class HttpAuthenticationError(Exception): def __init__(self, auth_headers=None): self.auth_headers = auth_headers diff --git a/libmproxy/protocol/tcp.py b/libmproxy/protocol/tcp.py index 4441d2f0..406a6f7b 100644 --- a/libmproxy/protocol/tcp.py +++ b/libmproxy/protocol/tcp.py @@ -54,6 +54,6 @@ class TCPHandler(ProtocolHandler): self.c.close = True break - self.c.log("%s %s" % (direction, dst_str), ["\r\n" + data]) + self.c.log("%s %s\r\n%s" % (direction, dst_str,data)) dst.wfile.write(data) dst.wfile.flush() \ No newline at end of file -- cgit v1.2.3