Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
rboyer committed Nov 7, 2023
1 parent e763a08 commit 28b8c95
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test-integ/topoutil/http2.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ import (
"golang.org/x/net/http2"
)

// EnableHTTP2 returns a new shallow copy of client that has been tweaked to do
// h2c (cleartext http2).
func EnableHTTP2(client *http.Client) *http.Client {
// Shallow copy, and swap the transport
client2 := *client
Expand Down

0 comments on commit 28b8c95

Please sign in to comment.