Skip to content

Commit

Permalink
Moved several variable declarations from create into request_handler …
Browse files Browse the repository at this point in the history
…- create was the wrong scope.
  • Loading branch information
gjritter committed Jan 25, 2010
1 parent 6d7db0c commit 08b467b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/nerve.js
Expand Up @@ -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];
Expand Down

0 comments on commit 08b467b

Please sign in to comment.