summary refs log tree commit diff
path: root/synapse/server.py
diff options
context:
space:
mode:
authorAndrew Morgan <andrew@amorgan.xyz>2021-04-23 17:28:38 +0100
committerAndrew Morgan <andrew@amorgan.xyz>2021-04-23 17:28:38 +0100
commit8cb8c604e431edecd2f522a2f313e342da7349ed (patch)
treec3367a6843657e4cca981541d333a563b5e995c7 /synapse/server.py
parentMerge commit 'a7a379006' into anoa/dinsic_release_1_31_0 (diff)
parentFix additional type hints from Twisted 21.2.0. (#9591) (diff)
downloadsynapse-8cb8c604e431edecd2f522a2f313e342da7349ed.tar.xz
Merge commit '55da8df07' into anoa/dinsic_release_1_31_0
Diffstat (limited to 'synapse/server.py')
-rw-r--r--synapse/server.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/synapse/server.py b/synapse/server.py

index 369cc88026..48ac87a124 100644 --- a/synapse/server.py +++ b/synapse/server.py
@@ -351,11 +351,9 @@ class HomeServer(metaclass=abc.ABCMeta): @cache_in_self def get_http_client_context_factory(self) -> IPolicyForHTTPS: - return ( - InsecureInterceptableContextFactory() - if self.config.use_insecure_ssl_client_just_for_testing_do_not_use - else RegularPolicyForHTTPS() - ) + if self.config.use_insecure_ssl_client_just_for_testing_do_not_use: + return InsecureInterceptableContextFactory() + return RegularPolicyForHTTPS() @cache_in_self def get_simple_http_client(self) -> SimpleHttpClient: