aboutsummaryrefslogtreecommitdiff
path: root/clientapi/routing/deactivate.go
diff options
context:
space:
mode:
Diffstat (limited to 'clientapi/routing/deactivate.go')
-rw-r--r--clientapi/routing/deactivate.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/clientapi/routing/deactivate.go b/clientapi/routing/deactivate.go
index c8aa6a3b..f213db7f 100644
--- a/clientapi/routing/deactivate.go
+++ b/clientapi/routing/deactivate.go
@@ -1,7 +1,7 @@
package routing
import (
- "io/ioutil"
+ "io"
"net/http"
"github.com/matrix-org/dendrite/clientapi/auth"
@@ -20,7 +20,7 @@ func Deactivate(
) util.JSONResponse {
ctx := req.Context()
defer req.Body.Close() // nolint:errcheck
- bodyBytes, err := ioutil.ReadAll(req.Body)
+ bodyBytes, err := io.ReadAll(req.Body)
if err != nil {
return util.JSONResponse{
Code: http.StatusBadRequest,