From 84fedd54c8f1980bd02657b83c14ad94c56bd8bf Mon Sep 17 00:00:00 2001 From: Andrew Morgan Date: Wed, 17 Jul 2019 15:57:02 +0100 Subject: [PATCH] Remove trailing slash from /send/{txnID} --- federationapi/routing/routing.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/federationapi/routing/routing.go b/federationapi/routing/routing.go index 16704e0b2..5360bbe85 100644 --- a/federationapi/routing/routing.go +++ b/federationapi/routing/routing.go @@ -65,7 +65,7 @@ func Setup( v2keysmux.Handle("/server/{keyID}", localKeys).Methods(http.MethodGet) v2keysmux.Handle("/server/", localKeys).Methods(http.MethodGet) - v1fedmux.Handle("/send/{txnID}/", common.MakeFedAPI( + v1fedmux.Handle("/send/{txnID}", common.MakeFedAPI( "federation_send", cfg.Matrix.ServerName, keys, func(httpReq *http.Request, request *gomatrixserverlib.FederationRequest) util.JSONResponse { vars, err := common.URLDecodeMapValues(mux.Vars(httpReq))