Loading cmd/vault_service/internal/vault_client.go +1 −2 Original line number Diff line number Diff line Loading @@ -23,7 +23,6 @@ import ( "errors" "fmt" "io" "io/ioutil" "log" "net/http" "os" Loading Loading @@ -616,7 +615,7 @@ func getObj(obj map[string]interface{}, keyPath string) (string, error) { * Check json format into request body */ func checkBody(request *http.Request) (int, []byte, error) { bodyStr, _ := ioutil.ReadAll(request.Body) bodyStr, _ := io.ReadAll(request.Body) if len(bodyStr) <= 0 { return http.StatusBadRequest, nil, fmt.Errorf("request body must not be empty") } Loading Loading
cmd/vault_service/internal/vault_client.go +1 −2 Original line number Diff line number Diff line Loading @@ -23,7 +23,6 @@ import ( "errors" "fmt" "io" "io/ioutil" "log" "net/http" "os" Loading Loading @@ -616,7 +615,7 @@ func getObj(obj map[string]interface{}, keyPath string) (string, error) { * Check json format into request body */ func checkBody(request *http.Request) (int, []byte, error) { bodyStr, _ := ioutil.ReadAll(request.Body) bodyStr, _ := io.ReadAll(request.Body) if len(bodyStr) <= 0 { return http.StatusBadRequest, nil, fmt.Errorf("request body must not be empty") } Loading