From bfc99975145ca5a38611c7b1736d00f35c86ca2f Mon Sep 17 00:00:00 2001 From: Brendan Abolivier Date: Tue, 12 Sep 2017 17:55:46 +0100 Subject: [PATCH] Specify HTTP methods for the sync API --- src/github.com/matrix-org/dendrite/syncapi/routing/routing.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/github.com/matrix-org/dendrite/syncapi/routing/routing.go b/src/github.com/matrix-org/dendrite/syncapi/routing/routing.go index 6eaa6b2d6..e95a7a250 100644 --- a/src/github.com/matrix-org/dendrite/syncapi/routing/routing.go +++ b/src/github.com/matrix-org/dendrite/syncapi/routing/routing.go @@ -32,5 +32,5 @@ func Setup(apiMux *mux.Router, srp *sync.RequestPool, deviceDB *devices.Database r0mux := apiMux.PathPrefix(pathPrefixR0).Subrouter() r0mux.Handle("/sync", common.MakeAuthAPI("sync", deviceDB, func(req *http.Request, device *authtypes.Device) util.JSONResponse { return srp.OnIncomingSyncRequest(req, device) - })) + })).Methods("GET") }