diff options
Diffstat (limited to 'routers/private/restore_repo.go')
-rw-r--r-- | routers/private/restore_repo.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/private/restore_repo.go b/routers/private/restore_repo.go index 87d60537cd..b7f7ed176f 100644 --- a/routers/private/restore_repo.go +++ b/routers/private/restore_repo.go @@ -5,7 +5,7 @@ package private import ( - "io/ioutil" + "io" "net/http" myCtx "code.gitea.io/gitea/modules/context" @@ -16,7 +16,7 @@ import ( // RestoreRepo restore a repository from data func RestoreRepo(ctx *myCtx.PrivateContext) { - bs, err := ioutil.ReadAll(ctx.Req.Body) + bs, err := io.ReadAll(ctx.Req.Body) if err != nil { ctx.JSON(http.StatusInternalServerError, private.Response{ Err: err.Error(), |