From a4f12f06f4c5fa0e1bbed02c7a8c75e05a5844a6 Mon Sep 17 00:00:00 2001 From: Blade Barringer Date: Wed, 4 Nov 2015 20:46:23 -0600 Subject: [PATCH] Remove extraneous white space --- website/src/server.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/website/src/server.js b/website/src/server.js index fdf0e9654f..7daa1f2dcb 100644 --- a/website/src/server.js +++ b/website/src/server.js @@ -100,7 +100,7 @@ if (cores!==0 && cluster.isMaster && (isDev || isProd)) { // Route requests to the right app // Matches all request except the ones going to /api/v3/** - app.all(/^(?!\/api\/v3).+/i, oldApp); + app.all(/^(?!\/api\/v3).+/i, oldApp); // Matches all requests going to /api/v3 app.all('/api/v3', newApp); @@ -121,7 +121,7 @@ if (cores!==0 && cluster.isMaster && (isDev || isProd)) { oldApp.use(redirects.forceSSL); var bodyParser = require('body-parser'); // Default limit is 100kb, need that because we actually send whole groups to the server - // FIXME as soon as possible (need to move on the client from $resource -> $http) + // FIXME as soon as possible (need to move on the client from $resource -> $http) oldApp.use(bodyParser.urlencoded({ limit: '1mb', parameterLimit: 10000, // Upped for safety from 1k, FIXME as above @@ -129,7 +129,7 @@ if (cores!==0 && cluster.isMaster && (isDev || isProd)) { })); oldApp.use(bodyParser.json({ limit: '1mb' - })); + })); oldApp.use(require('method-override')()); oldApp.use(require('cookie-parser')()); @@ -138,7 +138,7 @@ if (cores!==0 && cluster.isMaster && (isDev || isProd)) { secret: nconf.get('SESSION_SECRET'), httpOnly: false, maxAge: TWO_WEEKS - })); + })); // Initialize Passport! Also use passport.session() middleware, to support // persistent login sessions (recommended). @@ -174,4 +174,4 @@ if (cores!==0 && cluster.isMaster && (isDev || isProd)) { }); module.exports = server; -} \ No newline at end of file +}