From 6893affb2f4698a416b54115c00dfc744c140443 Mon Sep 17 00:00:00 2001 From: boypt <1033514+boypt@users.noreply.github.com> Date: Thu, 15 Jul 2021 13:27:19 +0800 Subject: [PATCH] dosen't seem to be a h2 bug, remove proto map --- server/server.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/server/server.go b/server/server.go index 68c2274c..ee7b2eda 100644 --- a/server/server.go +++ b/server/server.go @@ -2,7 +2,6 @@ package server import ( "compress/gzip" - "crypto/tls" "fmt" stdlog "log" "net" @@ -252,10 +251,6 @@ func (s *Server) Run(version string) error { //handler stack Handler: h, } - if isTLS { - //disable http2 due to velox bug - server.TLSNextProto = map[string]func(*http.Server, *tls.Conn, http.Handler){} - } //serve! var listener net.Listener