diff options
Diffstat (limited to 'clientapi/routing/device.go')
-rw-r--r-- | clientapi/routing/device.go | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/clientapi/routing/device.go b/clientapi/routing/device.go index cf6f24a7..c858e88a 100644 --- a/clientapi/routing/device.go +++ b/clientapi/routing/device.go @@ -106,13 +106,6 @@ func UpdateDeviceByID( req *http.Request, deviceDB *devices.Database, device *authtypes.Device, deviceID string, ) util.JSONResponse { - if req.Method != http.MethodPut { - return util.JSONResponse{ - Code: http.StatusMethodNotAllowed, - JSON: jsonerror.NotFound("Bad Method"), - } - } - localpart, _, err := gomatrixserverlib.SplitID('@', device.UserID) if err != nil { return httputil.LogThenError(req, err) |