Skip to content

Commit 54a4d31

Browse files
committed
Fixed http2
Signed-off-by: Vishal Rana <[email protected]>
1 parent 04f4504 commit 54a4d31

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

engine/standard/server.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,7 @@ func (s *Server) Start() error {
112112

113113
if s.config.TLSCertFile != "" && s.config.TLSKeyFile != "" {
114114
// TODO: https://github.com/golang/go/commit/d24f446a90ea94b87591bf16228d7d871fec3d92
115-
config := &tls.Config{
116-
NextProtos: []string{"http/1.1"},
117-
}
115+
config := &tls.Config{}
118116
if !s.config.DisableHTTP2 {
119117
config.NextProtos = append(config.NextProtos, "h2")
120118
}

0 commit comments

Comments
 (0)