Skip to content
Snippets Groups Projects
Commit 2e9c73e8 authored by Jeroen's avatar Jeroen
Browse files

more generic conversion of str/bytes to unicode

parent 64899341
No related branches found
No related tags found
No related merge requests found
...@@ -123,6 +123,6 @@ class ClientTLSOptionsFactory(object): ...@@ -123,6 +123,6 @@ class ClientTLSOptionsFactory(object):
def get_options(self, host): def get_options(self, host):
return ClientTLSOptions( return ClientTLSOptions(
unicode(host), host.decode('utf-8'),
CertificateOptions(verify=False).getContext() CertificateOptions(verify=False).getContext()
) )
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment