aboutsummaryrefslogtreecommitdiffstats
path: root/pathod/protocols
diff options
context:
space:
mode:
authorShadab Zafar <dufferzafar0@gmail.com>2016-06-16 18:16:51 +0530
committerMaximilian Hils <git@maximilianhils.com>2016-06-16 17:08:06 -0700
commitaa3d3290eeb1d79d8799f557f785fb559010fb52 (patch)
treefa18aa45d0edd13f703b620048b098faebd5b61a /pathod/protocols
parentcd5ef042bbbe3155efd29a749a7aefa52728f98e (diff)
downloadmitmproxy-aa3d3290eeb1d79d8799f557f785fb559010fb52.tar.gz
mitmproxy-aa3d3290eeb1d79d8799f557f785fb559010fb52.tar.bz2
mitmproxy-aa3d3290eeb1d79d8799f557f785fb559010fb52.zip
Py3: Send bytes to get_cert
Diffstat (limited to 'pathod/protocols')
-rw-r--r--pathod/protocols/http.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pathod/protocols/http.py b/pathod/protocols/http.py
index 9756c266..2ede2591 100644
--- a/pathod/protocols/http.py
+++ b/pathod/protocols/http.py
@@ -25,7 +25,7 @@ class HTTPProtocol(object):
if not self.pathod_handler.server.ssloptions.not_after_connect:
try:
cert, key, chain_file_ = self.pathod_handler.server.ssloptions.get_cert(
- connect[0]
+ connect[0].encode()
)
self.pathod_handler.convert_to_ssl(
cert,