From c68cd9beac8415aed25a9ecb3633abb5ba3dec57 Mon Sep 17 00:00:00 2001 From: Brendan Abolivier Date: Mon, 11 Sep 2017 13:24:07 +0100 Subject: [PATCH] Use MakeAPI for 3pid onbind handler as it isn't a standard federation request --- .../matrix-org/dendrite/federationapi/routing/routing.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/github.com/matrix-org/dendrite/federationapi/routing/routing.go b/src/github.com/matrix-org/dendrite/federationapi/routing/routing.go index 3186da9b1..c67f81124 100644 --- a/src/github.com/matrix-org/dendrite/federationapi/routing/routing.go +++ b/src/github.com/matrix-org/dendrite/federationapi/routing/routing.go @@ -79,10 +79,9 @@ func Setup( }, )) - v1fedmux.Handle("/3pid/onbind", common.MakeFedAPI( - "3pid_onbind", cfg.Matrix.ServerName, keys, - func(httpReq *http.Request, request *gomatrixserverlib.FederationRequest) util.JSONResponse { - return writers.CreateInvitesFrom3PIDInvites(httpReq, query, cfg, producer, federation) + v1fedmux.Handle("/3pid/onbind", common.MakeAPI("3pid_onbind", + func(req *http.Request) util.JSONResponse { + return writers.CreateInvitesFrom3PIDInvites(req, query, cfg, producer, federation) }, ))