Sample code: https://play.golang.org/p/6PZH13zqKH
Which when run on your local machine, will error with: 2016/08/28 18:21:14 Get https://www.google.com: malformed HTTP response "\x00\x00\x18\x04\x00\x00\x00\x00\x00\x00\x03\x00\x00\x00d\x00\x04\x00\x10\x00\x00\x00\x05\x00\x00@ \x00\x00\x06\x00\x00@ \x00\x00\x00\x04\b\x00\x00\x00\x00\x00\x00\x0f\x00\x01\x00\x00\x1e\a\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01http2_handshake_failed" exit status 1 On Sun, Aug 28, 2016 at 6:18 PM Jeff Hodges <j...@somethingsimilar.com> wrote: > Hey, I've not been able to figure out how to enable HTTP/2 in a net/http > client that needs some tls.Config settings in its Transport (like it's > needs a specific root added at run time) using only the stdlib. > > Is there a way to enable HTTP/2 on clients in the stdlib that I've missed? > > (Related: I think this is blocking the creation of a test for > http.ReverseProxy for https://github.com/golang/go/issues/16696 because > my current formulation needs an InsecureSkipVerify setting) > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.