From 7e861b60fbd721b374ec929926b14e57dc60ec41 Mon Sep 17 00:00:00 2001 From: Andrew Morgan Date: Fri, 26 Jul 2019 14:24:43 +0100 Subject: [PATCH] Make trailing slash on server key optional --- federationapi/routing/routing.go | 1 + 1 file changed, 1 insertion(+) diff --git a/federationapi/routing/routing.go b/federationapi/routing/routing.go index ed32c890..9f576790 100644 --- a/federationapi/routing/routing.go +++ b/federationapi/routing/routing.go @@ -64,6 +64,7 @@ func Setup( // {keyID} argument and always return a response containing all of the keys. v2keysmux.Handle("/server/{keyID}", localKeys).Methods(http.MethodGet) v2keysmux.Handle("/server/", localKeys).Methods(http.MethodGet) + v2keysmux.Handle("/server", localKeys).Methods(http.MethodGet) v1fedmux.Handle("/send/{txnID}", common.MakeFedAPI( "federation_send", cfg.Matrix.ServerName, keys,