Replace deprecated io/ioutils (#230)

This commit is contained in:
Manuel Rüger
2023-01-03 18:54:04 +01:00
committed by GitHub
parent f4bbbb19ca
commit 3e558ac2e3
8 changed files with 17 additions and 20 deletions

View File

@@ -6,7 +6,6 @@ import (
"errors"
"fmt"
"io"
"io/ioutil"
"mime/multipart"
"net/http"
"os"
@@ -727,7 +726,7 @@ func newErrorStatusNotOK(request *gopencils.Resource) error {
)
}
output, _ := ioutil.ReadAll(request.Raw.Body)
output, _ := io.ReadAll(request.Raw.Body)
defer request.Raw.Body.Close()
return fmt.Errorf(