mirror of
https://github.com/kataras/iris.git
synced 2025-12-18 02:17:05 +00:00
add h2 header manually for pre-go 1.9 users when manually key files are being used
Former-commit-id: edf521fc02de87b53cd3bdf0b8e77610dd535862
This commit is contained in:
@@ -251,6 +251,8 @@ func (su *Supervisor) ListenAndServeTLS(certFile string, keyFile string) error {
|
||||
return err
|
||||
}
|
||||
|
||||
// manually inserted as pre-go 1.9 for any case.
|
||||
cfg.NextProtos = []string{"h2", "http/1.1"}
|
||||
su.Server.TLSConfig = cfg
|
||||
return su.ListenAndServe()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user