Rename context factory

Mjark is officially no fun.
This commit is contained in:
Daniel Wagner-Hall 2015-09-15 15:46:22 +01:00
parent 9fc0aad567
commit 3bcbabc9fb
2 changed files with 5 additions and 5 deletions

View file

@ -21,7 +21,7 @@
# Imports required for the default HomeServer() implementation
from twisted.web.client import BrowserLikePolicyForHTTPS
from synapse.federation import initialize_http_replication
from synapse.http.client import SimpleHttpClient, WoefullyInsecureContextFactory
from synapse.http.client import SimpleHttpClient, InsecureInterceptableContextFactory
from synapse.notifier import Notifier
from synapse.api.auth import Auth
from synapse.handlers import Handlers
@ -181,7 +181,7 @@ class HomeServer(BaseHomeServer):
def build_http_client_context_factory(self):
config = self.get_config()
return (
WoefullyInsecureContextFactory() if config.use_insecure_ssl_client
InsecureInterceptableContextFactory() if config.use_insecure_ssl_client
else BrowserLikePolicyForHTTPS()
)