Enable HTTP/2

This commit is contained in:
Ken-Håvard Lieng 2016-01-08 18:53:02 +01:00
parent 137cf3224d
commit d9b63dd0ef
54 changed files with 21568 additions and 3 deletions

View file

@ -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 {