I used this sample code: package main
import ( "fmt" "log" "net/http" "strings" ) func main() { http.HandleFunc("/", func(w http.ResponseWriter, req *http.Request) { w.Write([]byte(formatRequest(req))) }) log.Fatalln(http.ListenAndServeTLS(":443", "certificate.crt", "private.key", nil)) } func formatRequest(r *http.Request) string { var request []string url := fmt.Sprintf("%v %v %v", r.Method, r.URL, r.Proto) request = append(request, url) request = append(request, fmt.Sprintf("Host: %v", r.Host)) for name, headers := range r.Header { name = strings.ToLower(name) for _, h := range headers { request = append(request, fmt.Sprintf("%v: %v", name, h)) } } return strings.Join(request, "\n") } to test it h2 on myself and it's behaving like http2.golang.org too. see: https://goshop.ddns.net/ (it's ok on linux & android but not in windows!) On Friday, December 30, 2016 at 12:50:20 AM UTC+3:30, Dave Cheney wrote: > > Do you have any av software on your computer that may be enforcing a proxy? > > Does your environment enforce a proxy? > -- 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.