Enable HTTP/2
This commit is contained in:
parent
137cf3224d
commit
d9b63dd0ef
54 changed files with 21568 additions and 3 deletions
|
@ -11,7 +11,9 @@ import (
|
|||
)
|
||||
|
||||
func listenAndServeTLS(srv *http.Server) error {
|
||||
srv.TLSConfig.NextProtos = []string{"http/1.1"}
|
||||
if srv.TLSConfig.NextProtos == nil {
|
||||
srv.TLSConfig.NextProtos = []string{"http/1.1"}
|
||||
}
|
||||
|
||||
ln, err := net.Listen("tcp", srv.Addr)
|
||||
if err != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue