diff options
author | Alex Chen <Cnly@users.noreply.github.com> | 2019-08-20 01:01:53 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-20 01:01:53 +0800 |
commit | a81917c3e72be13dd0a9680bde54f3ad35c846ab (patch) | |
tree | f32b540bc44480e213a741a182a24f872422cca1 /federationapi/routing/routing.go | |
parent | 0ed2dd0b154f147a5575fe60996005692946160a (diff) |
Make trailing slash on server key request optional (#788)
Cherry-picked from 7e861b60fbd721b374ec929926b14e57dc60ec41
Diffstat (limited to 'federationapi/routing/routing.go')
-rw-r--r-- | federationapi/routing/routing.go | 1 |
1 files changed, 1 insertions, 0 deletions
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, |