mirror of
https://github.com/labstack/echo.git
synced 2025-07-01 00:55:04 +02:00
@ -112,9 +112,7 @@ func (s *Server) Start() error {
|
|||||||
|
|
||||||
if s.config.TLSCertFile != "" && s.config.TLSKeyFile != "" {
|
if s.config.TLSCertFile != "" && s.config.TLSKeyFile != "" {
|
||||||
// TODO: https://github.com/golang/go/commit/d24f446a90ea94b87591bf16228d7d871fec3d92
|
// TODO: https://github.com/golang/go/commit/d24f446a90ea94b87591bf16228d7d871fec3d92
|
||||||
config := &tls.Config{
|
config := &tls.Config{}
|
||||||
NextProtos: []string{"http/1.1"},
|
|
||||||
}
|
|
||||||
if !s.config.DisableHTTP2 {
|
if !s.config.DisableHTTP2 {
|
||||||
config.NextProtos = append(config.NextProtos, "h2")
|
config.NextProtos = append(config.NextProtos, "h2")
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user