summaryrefslogtreecommitdiffstats
path: root/modules/private/key.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/private/key.go')
-rw-r--r--modules/private/key.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/private/key.go b/modules/private/key.go
index d0b11a96e7..8dfd82a6d6 100644
--- a/modules/private/key.go
+++ b/modules/private/key.go
@@ -7,7 +7,7 @@ package private
import (
"context"
"fmt"
- "io/ioutil"
+ "io"
"net/http"
"code.gitea.io/gitea/modules/setting"
@@ -49,7 +49,7 @@ func AuthorizedPublicKeyByContent(ctx context.Context, content string) (string,
if resp.StatusCode != http.StatusOK {
return "", fmt.Errorf("Failed to update public key: %s", decodeJSONError(resp).Err)
}
- bs, err := ioutil.ReadAll(resp.Body)
+ bs, err := io.ReadAll(resp.Body)
return string(bs), err
}