chore: remove refs to deprecated io/ioutil

Signed-off-by: guoguangwu <guoguangwu@magic-shield.com>
This commit is contained in:
guoguangwu
2023-10-19 11:05:38 +08:00
parent 958b0671bd
commit 115e48a202
12 changed files with 56 additions and 59 deletions
+1 -2
View File
@@ -21,7 +21,6 @@ import (
"crypto/x509"
"errors"
"io"
"io/ioutil"
"net/http"
"os"
@@ -54,7 +53,7 @@ func Delete(url string, r io.Reader, w io.Writer, clientGenerator func() *http.C
return Request("DELETE", url, r, w, clientGenerator, reqTuner...)
}
var devnull = ioutil.Discard
var devnull = io.Discard
// Request will perform the request to the given url and method sending the
// content of the given reader as the body and writing all the contents