0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-12-14 13:33:50 +01:00

more generic conversion of str/bytes to unicode

This commit is contained in:
Jeroen 2018-08-09 21:31:26 +02:00
parent 64899341dc
commit 2e9c73e8ca

View file

@ -123,6 +123,6 @@ class ClientTLSOptionsFactory(object):
def get_options(self, host):
return ClientTLSOptions(
unicode(host),
host.decode('utf-8'),
CertificateOptions(verify=False).getContext()
)