From 787425e5c57488875de45d3b052ac4de5bede7db Mon Sep 17 00:00:00 2001 From: Gerasimos Maropoulos Date: Mon, 12 Sep 2016 23:25:17 +0300 Subject: [PATCH] Donations Summary Update and a small fix --- DONATIONS.md | 3 ++- HISTORY.md | 4 ++++ README.md | 6 +++--- iris.go | 12 +++++++++--- 4 files changed, 18 insertions(+), 7 deletions(-) diff --git a/DONATIONS.md b/DONATIONS.md index e337ad72..b209b02a 100644 --- a/DONATIONS.md +++ b/DONATIONS.md @@ -25,7 +25,8 @@ I'm grateful for all the generous donations. Iris is fully funded by these dona #### Donors - [Ryan Brooks](https://github.com/ryanbyyc) donated 50 EUR at May 11 -- Anonymous(Currently) donated 20 EUR at September 11 +- [Juan Sebastián Suárez Valencia](https://github.com/Juanses) donated 20 EUR at September 11 + > The name of the donator added after his/her permission. #### Report, so far diff --git a/HISTORY.md b/HISTORY.md index 7f98dd2c..18c83a15 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -2,6 +2,10 @@ **How to upgrade**: remove your `$GOPATH/src/github.com/kataras/iris` folder, open your command-line and execute this command: `go get -u github.com/kataras/iris`. +## 4.2.1 -> 4.2.2 + +- Fix [sessiondb issue 416](https://github.com/kataras/iris/issues/416) + ## 4.2.0 -> 4.2.1 - **CHANGE**: No front-end changes if you used the default response engines before. Response Engines to Serializers, `iris.ResponseEngine` `serializer.Serializer`, comes from `kataras/go-serializer` which is installed automatically when you upgrade iris with `-u` flag. diff --git a/README.md b/README.md index 30754b26..5eff3c38 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@
-Releases +Releases Examples @@ -178,7 +178,7 @@ I recommend writing your API tests using this new library, [httpexpect](https:// Versioning ------------ -Current: **v4.2.1** +Current: **v4.2.2** > Iris is an active project @@ -221,7 +221,7 @@ License can be found [here](LICENSE). [Travis]: http://travis-ci.org/kataras/iris [License Widget]: https://img.shields.io/badge/license-MIT%20%20License%20-E91E63.svg?style=flat-square [License]: https://github.com/kataras/iris/blob/master/LICENSE -[Release Widget]: https://img.shields.io/badge/release-v4.2.1-blue.svg?style=flat-square +[Release Widget]: https://img.shields.io/badge/release-v4.2.2-blue.svg?style=flat-square [Release]: https://github.com/kataras/iris/releases [Chat Widget]: https://img.shields.io/badge/community-chat-00BCD4.svg?style=flat-square [Chat]: https://kataras.rocket.chat/channel/iris diff --git a/iris.go b/iris.go index b952174d..2ad04131 100644 --- a/iris.go +++ b/iris.go @@ -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