diff options
Diffstat (limited to 'modules/graceful/server.go')
-rw-r--r-- | modules/graceful/server.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/graceful/server.go b/modules/graceful/server.go index 704aa8a2b7..6b7d4a1a97 100644 --- a/modules/graceful/server.go +++ b/modules/graceful/server.go @@ -106,7 +106,7 @@ func (srv *Server) ListenAndServe(serve ServeFunction) error { func (srv *Server) ListenAndServeTLS(certFile, keyFile string, serve ServeFunction) error { config := &tls.Config{} if config.NextProtos == nil { - config.NextProtos = []string{"http/1.1"} + config.NextProtos = []string{"h2", "http/1.1"} } config.Certificates = make([]tls.Certificate, 1) |