mirror of
https://github.com/labstack/echo.git
synced 2025-01-01 22:09:21 +02:00
Fixed http2
Signed-off-by: Vishal Rana <vr@labstack.com>
This commit is contained in:
parent
04f45046b1
commit
54a4d31407
@ -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")
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user