mirror of
https://github.com/element-hq/synapse
synced 2024-08-18 22:40:51 +00:00
more generic conversion of str/bytes to unicode
This commit is contained in:
parent
64899341dc
commit
2e9c73e8ca
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue