diff options
author | Maximilian Hils <git@maximilianhils.com> | 2014-09-04 14:46:25 +0200 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2014-09-04 14:46:25 +0200 |
commit | f4d4332472c7fa68014996a1d55b37911d1515f9 (patch) | |
tree | ebe1ea955a2a0cbc07b60e9232406278cac2dc41 /libmproxy/protocol/tcp.py | |
parent | 1d45c54a045ba8481cb907e292fde9a52c26dba1 (diff) | |
download | mitmproxy-f4d4332472c7fa68014996a1d55b37911d1515f9.tar.gz mitmproxy-f4d4332472c7fa68014996a1d55b37911d1515f9.tar.bz2 mitmproxy-f4d4332472c7fa68014996a1d55b37911d1515f9.zip |
coverage++
Diffstat (limited to 'libmproxy/protocol/tcp.py')
-rw-r--r-- | libmproxy/protocol/tcp.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libmproxy/protocol/tcp.py b/libmproxy/protocol/tcp.py index 57a48ab9..990c502a 100644 --- a/libmproxy/protocol/tcp.py +++ b/libmproxy/protocol/tcp.py @@ -59,11 +59,11 @@ class TCPHandler(ProtocolHandler): # if one of the peers is over SSL, we need to send bytes/strings if not src.ssl_established: # only ssl to dst, i.e. we revc'd into buf but need bytes/string now. contents = buf[:size].tobytes() - # self.c.log("%s %s\r\n%s" % (direction, dst_str, cleanBin(contents)), "debug") + self.c.log("%s %s\r\n%s" % (direction, dst_str, cleanBin(contents)), "debug") dst.connection.send(contents) else: # socket.socket.send supports raw bytearrays/memoryviews - # self.c.log("%s %s\r\n%s" % (direction, dst_str, cleanBin(buf.tobytes())), "debug") + self.c.log("%s %s\r\n%s" % (direction, dst_str, cleanBin(buf.tobytes())), "debug") dst.connection.send(buf[:size]) except socket.error as e: self.c.log("TCP connection closed unexpectedly.", "debug") |