From 54a4d3140722793aa1cc430bd8a4a73aedff2783 Mon Sep 17 00:00:00 2001 From: Vishal Rana Date: Sat, 24 Sep 2016 16:21:04 -0700 Subject: [PATCH] Fixed http2 Signed-off-by: Vishal Rana --- engine/standard/server.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/engine/standard/server.go b/engine/standard/server.go index b681dc2d..fb364860 100644 --- a/engine/standard/server.go +++ b/engine/standard/server.go @@ -112,9 +112,7 @@ func (s *Server) Start() error { if s.config.TLSCertFile != "" && s.config.TLSKeyFile != "" { // TODO: https://github.com/golang/go/commit/d24f446a90ea94b87591bf16228d7d871fec3d92 - config := &tls.Config{ - NextProtos: []string{"http/1.1"}, - } + config := &tls.Config{} if !s.config.DisableHTTP2 { config.NextProtos = append(config.NextProtos, "h2") }