diff options
author | David Baker <dbkr@matrix.org> | 2014-11-20 13:53:34 +0000 |
---|---|---|
committer | David Baker <dbkr@matrix.org> | 2014-11-20 13:53:34 +0000 |
commit | dc60eee50e0a16ec24d10398c82f6fb64eec9ccc (patch) | |
tree | 00dcfae0a19aee5a8752d8f29959213f220682d7 /synapse/handlers/register.py | |
parent | CaptchaServerHttpClient should extend the base, not matrix http client. (diff) | |
download | synapse-dc60eee50e0a16ec24d10398c82f6fb64eec9ccc.tar.xz |
Refactor the HTTP clients a little.
Diffstat (limited to '')
-rw-r--r-- | synapse/handlers/register.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/synapse/handlers/register.py b/synapse/handlers/register.py index 7df9d9b82d..a39230bc76 100644 --- a/synapse/handlers/register.py +++ b/synapse/handlers/register.py @@ -22,7 +22,7 @@ from synapse.api.errors import ( ) from ._base import BaseHandler import synapse.util.stringutils as stringutils -from synapse.http.client import IdentityServerHttpClient +from synapse.http.client import SimpleHttpClient from synapse.http.client import CaptchaServerHttpClient import base64 @@ -159,7 +159,7 @@ class RegistrationHandler(BaseHandler): def _threepid_from_creds(self, creds): # TODO: get this from the homeserver rather than creating a new one for # each request - httpCli = IdentityServerHttpClient(self.hs) + httpCli = SimpleHttpClient(self.hs) # XXX: make this configurable! trustedIdServers = ['matrix.org:8090'] if not creds['idServer'] in trustedIdServers: @@ -178,7 +178,7 @@ class RegistrationHandler(BaseHandler): @defer.inlineCallbacks def _bind_threepid(self, creds, mxid): - httpCli = IdentityServerHttpClient(self.hs) + httpCli = SimpleHttpClient(self.hs) data = yield httpCli.post_urlencoded_get_json( creds['idServer'], "/_matrix/identity/api/v1/3pid/bind", |