Ensure HTTP/2 enabled

This commit is contained in:
Emile Vauge 2016-11-09 17:56:41 +01:00
parent 558b31f4d9
commit 00c7e5c72b
No known key found for this signature in database
GPG key ID: D808B4C167352E59

View file

@ -383,6 +383,9 @@ func (server *Server) createTLSConfig(entryPointName string, tlsOption *TLS, rou
return nil, err
}
// ensure http2 enabled
config.NextProtos = []string{"h2", "http/1.1"}
if len(tlsOption.ClientCAFiles) > 0 {
pool := x509.NewCertPool()
for _, caFile := range tlsOption.ClientCAFiles {