Skip to content

Commit 2caecab

Browse files
committed
feat: use ioutil.ReadAll
1 parent a2e503e commit 2caecab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

exec/executor.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"context"
66
"encoding/json"
77
"fmt"
8-
"io"
8+
"io/ioutil"
99
"net/http"
1010
"time"
1111

@@ -208,7 +208,7 @@ func (ex *Executor) sendRequest(ctx context.Context, r *request) (*response, err
208208
}
209209
defer resp.Body.Close()
210210

211-
buf, err := io.ReadAll(resp.Body)
211+
buf, err := ioutil.ReadAll(resp.Body)
212212
if err != nil {
213213
return nil, err
214214
}

0 commit comments

Comments
 (0)