mirror of
https://github.com/kovetskiy/mark.git
synced 2026-04-20 05:12:35 +00:00
Replace deprecated io/ioutils (#230)
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user