rename variable because collide with the imported package name

This commit is contained in:
Kamandlou 2022-08-26 13:46:04 +04:30
parent 1c48977cca
commit 79c9c46dea

View File

@ -100,7 +100,7 @@ func TestH2c(t *testing.T) {
url := "http://" + ln.Addr().String() + "/"
http := http.Client{
httpClient := http.Client{
Transport: &http2.Transport{
AllowHTTP: true,
DialTLS: func(netw, addr string, cfg *tls.Config) (net.Conn, error) {
@ -109,7 +109,7 @@ func TestH2c(t *testing.T) {
},
}
res, err := http.Get(url)
res, err := httpClient.Get(url)
if err != nil {
fmt.Println(err)
}