diff options
author | Neil Alexander <neilalexander@users.noreply.github.com> | 2022-08-05 10:26:59 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-05 10:26:59 +0100 |
commit | c8935fb53f122b367eda61ec7811c406193d29ba (patch) | |
tree | 928c78461943f180dde6b2b4e4cd1d26792248f1 /syncapi/routing | |
parent | 1b7f84250a46b401eccb89acafdef1b379f2dbc0 (diff) |
Do not use `ioutil` as it is deprecated (#2625)
Diffstat (limited to 'syncapi/routing')
-rw-r--r-- | syncapi/routing/filter.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/syncapi/routing/filter.go b/syncapi/routing/filter.go index b41714df..f5acdbde 100644 --- a/syncapi/routing/filter.go +++ b/syncapi/routing/filter.go @@ -16,7 +16,7 @@ package routing import ( "encoding/json" - "io/ioutil" + "io" "net/http" "github.com/matrix-org/gomatrixserverlib" @@ -88,7 +88,7 @@ func PutFilter( var filter gomatrixserverlib.Filter defer req.Body.Close() // nolint:errcheck - body, err := ioutil.ReadAll(req.Body) + body, err := io.ReadAll(req.Body) if err != nil { return util.JSONResponse{ Code: http.StatusBadRequest, |