Change order of h2 in TLS NextProtos
This commit is contained in:
parent
2ba6923560
commit
aa7b426306
|
@ -71,8 +71,8 @@ func (server *Server) Serve() {
|
|||
|
||||
if server.EnableHTTP2 {
|
||||
server.TLSConfig.Config.NextProtos = []string{
|
||||
"h2",
|
||||
"http/1.1",
|
||||
http2.H2TLSProto,
|
||||
}
|
||||
} else {
|
||||
server.AddExtraHeader("Connection", "close")
|
||||
|
|
Loading…
Reference in a new issue