diff options
Diffstat (limited to 'vendor/github.com/SevereCloud/vksdk/v2/api/upload.go')
-rw-r--r-- | vendor/github.com/SevereCloud/vksdk/v2/api/upload.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/vendor/github.com/SevereCloud/vksdk/v2/api/upload.go b/vendor/github.com/SevereCloud/vksdk/v2/api/upload.go index 59f65460..70362ebe 100644 --- a/vendor/github.com/SevereCloud/vksdk/v2/api/upload.go +++ b/vendor/github.com/SevereCloud/vksdk/v2/api/upload.go @@ -4,7 +4,6 @@ import ( "bytes" "encoding/json" "io" - "io/ioutil" "mime/multipart" "github.com/SevereCloud/vksdk/v2/object" @@ -34,7 +33,7 @@ func (vk *VK) UploadFile(url string, file io.Reader, fieldname, filename string) } defer resp.Body.Close() - bodyContent, err = ioutil.ReadAll(resp.Body) + bodyContent, err = io.ReadAll(resp.Body) return } @@ -214,7 +213,7 @@ func (vk *VK) uploadOwnerPhoto(params Params, squareCrop string, file io.Reader) } defer resp.Body.Close() - bodyContent, err := ioutil.ReadAll(resp.Body) + bodyContent, err := io.ReadAll(resp.Body) if err != nil { return } |