Add trailing slash at the end of the route for parity with synapse

This commit is contained in:
Brendan Abolivier 2018-11-07 10:52:08 +00:00
parent 8ad13f0c0f
commit 5891a0d078
No known key found for this signature in database
GPG key ID: 8EF1500759F70623

View file

@ -220,7 +220,7 @@ func Setup(
},
)).Methods(http.MethodGet)
v1fedmux.Handle("/backfill/{roomID}", common.MakeFedAPI(
v1fedmux.Handle("/backfill/{roomID}/", common.MakeFedAPI(
"federation_backfill", cfg.Matrix.ServerName, keys,
func(httpReq *http.Request, request *gomatrixserverlib.FederationRequest) util.JSONResponse {
vars := mux.Vars(httpReq)