1
0
mirror of https://github.com/kataras/iris.git synced 2026-03-10 10:25:57 +00:00

Donations Summary Update and a small fix

This commit is contained in:
Gerasimos Maropoulos
2016-09-12 23:25:17 +03:00
parent 3d70d13298
commit 787425e5c5
4 changed files with 18 additions and 7 deletions

12
iris.go
View File

@@ -78,7 +78,7 @@ import (
const (
// Version of the iris
Version = "4.2.1"
Version = "4.2.2"
banner = ` _____ _
|_ _| (_)
@@ -236,6 +236,9 @@ func New(setters ...OptionSetter) *Framework {
s.Available = make(chan bool)
}
// set empty sessions , look .initialize for its Init
s.sessions = sessions.Empty()
return s
}
@@ -273,8 +276,11 @@ func (s *Framework) initialize() {
s.Logger.Panic(err) // panic on templates loading before listening if we have an error.
}
}
// set the sessions
s.sessions = sessions.New(sessions.Config(s.Config.Sessions))
// init, starts the session manager if the Cookie configuration field is not empty
if s.Config.Sessions.Cookie != "" {
s.sessions.Init(sessions.Config(s.Config.Sessions))
}
if s.Config.Websocket.Endpoint != "" {
// register the websocket server and listen to websocket connections when/if $instance.Websocket.OnConnection called by the dev