Based on golang/go#13598, I should be able to disable the http2 client with:
GODEBUG=h2client=0 go run get.go
Based on golang/go#13598, I should be able to disable the http2 client with:
GODEBUG=h2client=0 go run get.go
package main | |
import ( | |
"io/ioutil" | |
"log" | |
"net/http" | |
) | |
func main() { | |
res, err := http.Get("https://buildkite.com/") | |
if err != nil { | |
log.Fatal(err) | |
} | |
log.Printf("Res: %#v", res) | |
b, err := ioutil.ReadAll(res.Body) | |
if err != nil { | |
log.Fatal(err) | |
} | |
log.Printf("Read %d bytes", len(b)) | |
} |