Skip to content

Commit

Permalink
Don't turn off cookie middleware when session hook is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
sgress454 committed Feb 10, 2016
1 parent a85b918 commit d21ae2d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/hooks/http/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,9 +195,9 @@ module.exports = function(sails) {
// If the session hook is not available:
else {

// Don't use the cookieParser or session middleware
// Don't use the session middleware
_.remove(sails.config.http.middleware.order, function (mwr){
return mwr === 'session' || mwr === 'cookieParser';
return mwr === 'session';
});

return initialize(cb);
Expand Down

1 comment on commit d21ae2d

@tarunjadhwani
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we have this in 0.11.x version also?

Please sign in to comment.