From d21ae2d8cf16df1169187392c9f522f99d556a85 Mon Sep 17 00:00:00 2001 From: Scott Gress Date: Tue, 9 Feb 2016 23:30:37 -0600 Subject: [PATCH] Don't turn off cookie middleware when session hook is disabled --- lib/hooks/http/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/hooks/http/index.js b/lib/hooks/http/index.js index d08106c0d1..9a8d34e506 100644 --- a/lib/hooks/http/index.js +++ b/lib/hooks/http/index.js @@ -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);