From 1fb99ab848a8ad530e45c605b03b4d5bcfcadcf9 Mon Sep 17 00:00:00 2001 From: Baris Soner Usakli Date: Sun, 28 Apr 2013 22:26:27 -0400 Subject: [PATCH] fixed the crash when going between pages, return next() in webserver.js --- src/webserver.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/webserver.js b/src/webserver.js index c13ceba3bd..1499a72825 100644 --- a/src/webserver.js +++ b/src/webserver.js @@ -31,7 +31,7 @@ var express = require('express'), })); app.use(function(req, res, next) { // Don't bother with session handling for API requests - if (/^\/api\//.test(req.url)) next(); + if (/^\/api\//.test(req.url)) return next(); if (req.session.uid === undefined) { console.log('info: [Auth] First load, retrieving uid...');