diff --git a/server/resolvers/test_endpoint.go b/server/resolvers/test_endpoint.go index e3e3eb3f5..c0cdb230a 100644 --- a/server/resolvers/test_endpoint.go +++ b/server/resolvers/test_endpoint.go @@ -5,7 +5,7 @@ import ( "context" "encoding/json" "fmt" - "io/ioutil" + "io" "net/http" "time" @@ -90,7 +90,7 @@ func TestEndpointResolver(ctx context.Context, params model.TestEndpointRequest) } defer resp.Body.Close() - body, err := ioutil.ReadAll(resp.Body) + body, err := io.ReadAll(resp.Body) if err != nil { log.Debug("error reading response: ", err) return nil, err diff --git a/server/utils/webhook.go b/server/utils/webhook.go index 5d280a7c4..a97f286cc 100644 --- a/server/utils/webhook.go +++ b/server/utils/webhook.go @@ -4,7 +4,7 @@ import ( "bytes" "context" "encoding/json" - "io/ioutil" + "io" "net/http" "time" @@ -95,7 +95,7 @@ func RegisterEvent(ctx context.Context, eventName string, authRecipe string, use } defer resp.Body.Close() - responseBytes, err := ioutil.ReadAll(resp.Body) + responseBytes, err := io.ReadAll(resp.Body) if err != nil { log.Debug("error reading response: ", err) continue