aboutsummaryrefslogtreecommitdiffstats
path: root/libmproxy/protocol/tcp.py
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2014-09-04 14:46:25 +0200
committerMaximilian Hils <git@maximilianhils.com>2014-09-04 14:46:25 +0200
commitf4d4332472c7fa68014996a1d55b37911d1515f9 (patch)
treeebe1ea955a2a0cbc07b60e9232406278cac2dc41 /libmproxy/protocol/tcp.py
parent1d45c54a045ba8481cb907e292fde9a52c26dba1 (diff)
downloadmitmproxy-f4d4332472c7fa68014996a1d55b37911d1515f9.tar.gz
mitmproxy-f4d4332472c7fa68014996a1d55b37911d1515f9.tar.bz2
mitmproxy-f4d4332472c7fa68014996a1d55b37911d1515f9.zip
coverage++
Diffstat (limited to 'libmproxy/protocol/tcp.py')
-rw-r--r--libmproxy/protocol/tcp.py4
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")