mirror of
https://github.com/element-hq/synapse.git
synced 2026-05-25 09:54:09 +00:00
more generic conversion of str/bytes to unicode
This commit is contained in:
@@ -123,6 +123,6 @@ class ClientTLSOptionsFactory(object):
|
||||
|
||||
def get_options(self, host):
|
||||
return ClientTLSOptions(
|
||||
unicode(host),
|
||||
host.decode('utf-8'),
|
||||
CertificateOptions(verify=False).getContext()
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user