mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-01 19:17:58 +00:00
chore: fix deprecated ioutil nopcloser (#27650)
Signed-off-by: idnandre <andre@idntimes.com>
This commit is contained in:
@@ -9,7 +9,7 @@ import (
|
||||
"crypto/tls"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"io/ioutil"
|
||||
"io"
|
||||
"net/http"
|
||||
"net/http/httptest"
|
||||
"net/textproto"
|
||||
@@ -885,7 +885,7 @@ func TestHandler_Parse_Form(t *testing.T) {
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
req.Body = ioutil.NopCloser(strings.NewReader(values.Encode()))
|
||||
req.Body = io.NopCloser(strings.NewReader(values.Encode()))
|
||||
req.Header.Set("x-vault-token", cluster.RootToken)
|
||||
req.Header.Set("content-type", "application/x-www-form-urlencoded")
|
||||
resp, err := c.Do(req)
|
||||
|
||||
Reference in New Issue
Block a user