Permalink
Browse files

Moved several variable declarations from create into request_handler …

…- create was the wrong scope.
  • Loading branch information...
1 parent 6d7db0c commit 08b467b3fce65e1daf72e323a5ac54a016b6441c @gjritter committed Jan 25, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/nerve.js
View
@@ -103,9 +103,9 @@
}
function create(app, options) {
- var matcher, handler, handler_args, match, pathname;
options = options || {};
function request_handler(req, res) {
+ var matcher, handler, handler_args, match, pathname;
req.session = req.get_or_create_session(req, res, {duration: options.session_duration || 30 * 60 * 1000});
for (var i = 0; i < app.length; i += 1) {
matcher = app[i][0];

0 comments on commit 08b467b

Please sign in to comment.