mirror of
https://github.com/kataras/iris.git
synced 2026-01-10 05:25:58 +00:00
update to version 8.4.1 ❤️ https://github.com/kataras/iris/blob/master/HISTORY.md#th-07-september-2017--v841
Former-commit-id: 9e5f0a08049b83605aa847b8f51fb856427354a6
This commit is contained in:
@@ -254,7 +254,12 @@ func (su *Supervisor) ListenAndServeTLS(certFile string, keyFile string) error {
|
||||
// manually inserted as pre-go 1.9 for any case.
|
||||
cfg.NextProtos = []string{"h2", "http/1.1"}
|
||||
su.Server.TLSConfig = cfg
|
||||
return su.ListenAndServe()
|
||||
|
||||
// It does nothing more than the su.Server.ListenAndServeTLS anymore.
|
||||
// - no hurt if we let it as it is
|
||||
// - no problem if we remove it as well
|
||||
// but let's comment this as proposed, fewer code is better:
|
||||
// return su.ListenAndServe()
|
||||
}
|
||||
|
||||
if su.Server.TLSConfig == nil {
|
||||
|
||||
Reference in New Issue
Block a user