mirror of
https://github.com/minio/minio.git
synced 2025-11-07 21:02:58 -05:00
Remove deprecated io/ioutil (#15707)
This commit is contained in:
@@ -23,7 +23,7 @@ package main
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"io"
|
||||
"log"
|
||||
"net/http"
|
||||
"strings"
|
||||
@@ -41,7 +41,7 @@ type Result struct {
|
||||
}
|
||||
|
||||
func mainHandler(w http.ResponseWriter, r *http.Request) {
|
||||
body, err := ioutil.ReadAll(r.Body)
|
||||
body, err := io.ReadAll(r.Body)
|
||||
if err != nil {
|
||||
writeErrorResponse(w, err)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user