From 0c224e7a6114509c89a900cf5bcb1aff37cd6bb1 Mon Sep 17 00:00:00 2001 From: Shane Thacker Date: Sat, 19 Dec 2015 23:29:34 -0600 Subject: [PATCH] added missing config settings for a couple core middleware and a whitespace fix --- lib/calvin.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/calvin.js b/lib/calvin.js index 5f07b4a..c361a5f 100644 --- a/lib/calvin.js +++ b/lib/calvin.js @@ -19,6 +19,8 @@ var Calvin = function(config){ engine: 'beard', path: false }, + redirects: { + }, memcache: { urls: [] }, @@ -26,6 +28,11 @@ var Calvin = function(config){ paths: [], press: {} }, + sessions: { + cookie: '__calvin', + secret: 'dontusethis', + csrf: false + }, vhosts: {} }; @@ -91,7 +98,7 @@ Calvin.prototype = { try { next(-1)(); - } catch(err) { + } catch (err) { response.error(err, err.message); } }