From c7d539a7ffc00340280b71e5b5b1ca993455aa77 Mon Sep 17 00:00:00 2001 From: Everest Date: Sun, 4 Feb 2024 01:23:52 -0300 Subject: [PATCH] remove deprecated package --- lib/server/http.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/server/http.go b/lib/server/http.go index 7c59165..da70736 100644 --- a/lib/server/http.go +++ b/lib/server/http.go @@ -6,7 +6,7 @@ import ( "context" "errors" "fmt" - "io/ioutil" + "io" "log/slog" "net/http" "strings" @@ -115,7 +115,7 @@ func getSessionValue(session *sessions.Session, key string) (string, error) { if err != nil { return "", err } - s, err := ioutil.ReadAll(r) + s, err := io.ReadAll(r) if err != nil { return "", err }