mirror of
https://github.com/gin-gonic/gin.git
synced 2025-10-16 13:22:09 +08:00
rename variable because collide with the imported package name
This commit is contained in:
parent
1c48977cca
commit
79c9c46dea
@ -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)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user