diff --git a/command.go b/command.go index c0dc29d..e580a8c 100644 --- a/command.go +++ b/command.go @@ -2,7 +2,7 @@ package main import ( "context" - "io/ioutil" + "io" "net/http" "strconv" "strings" @@ -78,7 +78,7 @@ func handleCmdReq(br *broker, c *gin.Context) { return } - content, err := ioutil.ReadAll(c.Request.Body) + content, err := io.ReadAll(c.Request.Body) if err != nil { c.Status(http.StatusBadRequest) return