From 51aaa68c7d1aa523fa3bff930390fad43d827bb7 Mon Sep 17 00:00:00 2001 From: "Alex Ellis (OpenFaaS Ltd)" Date: Thu, 15 Dec 2022 12:21:26 +0000 Subject: [PATCH] Convert usage of ioutil to io Signed-off-by: Alex Ellis (OpenFaaS Ltd) --- types/invoker.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/types/invoker.go b/types/invoker.go index 8ba59e2..cf6dad7 100644 --- a/types/invoker.go +++ b/types/invoker.go @@ -8,7 +8,6 @@ import ( "context" "fmt" "io" - "io/ioutil" "log" "net/http" "time" @@ -141,7 +140,7 @@ func (i *Invoker) invoke(ctx context.Context, c *http.Client, gwURL, contentType if res.Body != nil { defer res.Body.Close() - bytesOut, err := ioutil.ReadAll(res.Body) + bytesOut, err := io.ReadAll(res.Body) if err != nil { return nil, http.StatusServiceUnavailable, nil,