Skip to content

Commit

Permalink
Merge pull request #23 from jdc0589/master
Browse files Browse the repository at this point in the history
flash bugfix
  • Loading branch information
nrstott committed Nov 17, 2011
2 parents b5c2c33 + 39b12e8 commit 799faba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/middleware.js
Expand Up @@ -289,7 +289,7 @@ exports.Flash = function(config, nextApp) {


return when(prevData, function(data) {
req.env.flash = data;
req.env.flash = data || {};
// create the setter for new flash data
var setter = config.flashDataProvider.setter(req, newFlashId);
req.flash = function(key, val) {
Expand Down

0 comments on commit 799faba

Please sign in to comment.