We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents da971e5 + 2350249 commit 44edffdCopy full SHA for 44edffd
1 file changed
moksha.hub/moksha/hub/stomp/stomp.py
@@ -91,7 +91,7 @@ def connect(self, address, key=None, crt=None):
91
import service_identity
92
# connect SSL/TLS with SNI support (https://twistedmatrix.com/trac/ticket/5190)
93
# This requires service_identity module: https://pypi.python.org/pypi/service_identity
94
- ssl_context = ssl.optionsForClientTLS(host.decode('utf-8'), clientCertificate=client_cert)
+ ssl_context = ssl.optionsForClientTLS(six.text_type(host), clientCertificate=client_cert)
95
except ImportError:
96
log.warn("Connecting without SNI support due to absence of service_identity module.")
97
ssl_context = client_cert.options()
0 commit comments