From f266a15222aac2a181c1ceda6be2e2d49d804ed2 Mon Sep 17 00:00:00 2001 From: Pulkit Bhatia Date: Tue, 22 Oct 2024 11:54:01 -0700 Subject: [PATCH] [test] make http2 request instead --- transport/http.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/transport/http.go b/transport/http.go index e4b9f19d..fedc687f 100644 --- a/transport/http.go +++ b/transport/http.go @@ -24,6 +24,7 @@ import ( "bytes" "errors" "fmt" + "golang.org/x/net/http2" "io/ioutil" "math/rand" "net/http" @@ -74,7 +75,7 @@ func NewHTTP(opts HTTPOptions) (Transport, error) { opts: opts, // Use independent HTTP clients for each transport. client: &http.Client{ - Transport: &http.Transport{}, + Transport: &http2.Transport{}, }, tracer: opts.Tracer, }, nil