Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
net/http: changing Transport.Dial to DialContext opts in to HTTP/2 #27011
What did you do?
What did you expect to see?
What did you see instead?
Does this issue reproduce with the latest release (go1.10.3)?
We noticed this issue in Go 1.10.2 and the offending code hasn't changed in Go 1.10.3.
We deploy our code on linux/amd64.
We will submit a patch for this issue shortly.
Transport.DialerAndTLSConfigSupportsHTTP2 was added just earlier in CL 130256 but we thought of a better name moments after submitting. ForceAttemptHTTP2 is shorter, more direct, and doesn't constrain what we can use it with in the future. Updates #14391 Updates #27011 Change-Id: Ie5fc71bafcbcaa1941b5d49f748b6d710503d477 Reviewed-on: https://go-review.googlesource.com/c/go/+/172299 Reviewed-by: Brad Fitzpatrick <email@example.com>