diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2015-04-19 15:55:22 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2015-04-19 15:55:22 +1200 |
commit | f8469a283b66455e6e72d6ee6b5f8c1f6b4d0d19 (patch) | |
tree | df52dd108d841d19e96ba06f24e8e25924b3335e /test/test_pathoc.py | |
parent | 43dadbc2fe601bd2cff23ba94b738957a48d2825 (diff) | |
download | mitmproxy-f8469a283b66455e6e72d6ee6b5f8c1f6b4d0d19.tar.gz mitmproxy-f8469a283b66455e6e72d6ee6b5f8c1f6b4d0d19.tar.bz2 mitmproxy-f8469a283b66455e6e72d6ee6b5f8c1f6b4d0d19.zip |
pathoc: Print SSL info only once per connection
Diffstat (limited to 'test/test_pathoc.py')
-rw-r--r-- | test/test_pathoc.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/test_pathoc.py b/test/test_pathoc.py index ca67ff1f..1a60ae45 100644 --- a/test/test_pathoc.py +++ b/test/test_pathoc.py @@ -53,11 +53,11 @@ class _TestDaemon: ignorecodes=None, ignoretimeout=None ): + s = cStringIO.StringIO() c = pathoc.Pathoc(("127.0.0.1", self.d.port), ssl=self.ssl) - c.connect() + c.connect(showssl=showssl, fp=s) if timeout: c.settimeout(timeout) - s = cStringIO.StringIO() for i in requests: r = language.parse_requests(i)[0] if explain: @@ -67,7 +67,6 @@ class _TestDaemon: showreq = showreq, showresp = showresp, explain = explain, - showssl = showssl, hexdump = hexdump, ignorecodes = ignorecodes, ignoretimeout = ignoretimeout, |