Skip to content

Commit

Permalink
[test] make http2 request instead
Browse files Browse the repository at this point in the history
  • Loading branch information
pulkit4tech committed Oct 22, 2024
1 parent 915ecc3 commit f266a15
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion transport/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import (
"bytes"
"errors"
"fmt"
"golang.org/x/net/http2"
"io/ioutil"
"math/rand"
"net/http"
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit f266a15

Please sign in to comment.