mirror of
https://github.com/httprunner/httprunner.git
synced 2026-09-04 23:16:57 +08:00
change: replace ioutil.ReadAll with io.ReadAll
This commit is contained in:
@@ -4,7 +4,7 @@ import (
|
||||
"bytes"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"io"
|
||||
"math/rand"
|
||||
"net/http"
|
||||
"net/url"
|
||||
@@ -176,7 +176,7 @@ func (g *GA4Client) SendEvent(event Event) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
bs, err = ioutil.ReadAll(res.Body)
|
||||
bs, err = io.ReadAll(res.Body)
|
||||
if err != nil {
|
||||
return errors.Wrap(err, "read GA4 response body failed")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user