aboutsummaryrefslogtreecommitdiffstats
path: root/libpathod/pathoc.py
diff options
context:
space:
mode:
authorThomas Kriechbaumer <thomas@kriechbaumer.name>2015-06-16 13:52:41 +0200
committerThomas Kriechbaumer <thomas@kriechbaumer.name>2015-06-16 14:53:41 +0200
commit408b4ffef0a784bea7ec08c252e757bca6e28134 (patch)
treef7694eb9f7f875d72355b9f7c342910174574fc0 /libpathod/pathoc.py
parentec68aa303e89398ba34bbe01f3fbd1ac1fc441f3 (diff)
downloadmitmproxy-408b4ffef0a784bea7ec08c252e757bca6e28134.tar.gz
mitmproxy-408b4ffef0a784bea7ec08c252e757bca6e28134.tar.bz2
mitmproxy-408b4ffef0a784bea7ec08c252e757bca6e28134.zip
http2: implement Headers for request & response
improve test coverage fix super ctor call fix legacy httpversion simpliy SSLInfo without ALPN
Diffstat (limited to 'libpathod/pathoc.py')
-rw-r--r--libpathod/pathoc.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/libpathod/pathoc.py b/libpathod/pathoc.py
index 9c021360..c42cc82a 100644
--- a/libpathod/pathoc.py
+++ b/libpathod/pathoc.py
@@ -30,13 +30,8 @@ class SSLInfo:
self.certchain, self.cipher, self.alp = certchain, cipher, alp
def __str__(self):
- if self.alp:
- alp = self.alp
- else:
- alp = '<no protocol negotiated>'
-
parts = [
- "Application Layer Protocol: %s" % alp,
+ "Application Layer Protocol: %s" % self.alp,
"Cipher: %s, %s bit, %s" % self.cipher,
"SSL certificate chain:"
]