Skip to content

Commit b3497c1

Browse files
authored
still allow http1 too
1 parent 7adc845 commit b3497c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/graceful/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ func (srv *Server) ListenAndServe(serve ServeFunction) error {
106106
func (srv *Server) ListenAndServeTLS(certFile, keyFile string, serve ServeFunction) error {
107107
config := &tls.Config{}
108108
if config.NextProtos == nil {
109-
config.NextProtos = []string{"h2"}
109+
config.NextProtos = []string{"h2", "http/1.1"}
110110
}
111111

112112
config.Certificates = make([]tls.Certificate, 1)

0 commit comments

Comments
 (0)