From d9682e668f5b76fa65bb8e37de2b1f0385ec9345 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Ma=C5=82ecki?= Date: Wed, 16 Apr 2014 10:59:15 +0200 Subject: [PATCH] Remove `favicon` and `methodOverride` middlewares `methodOverride` is supposed to provide compatibility for older "browsers" which aren't able to send XHR requests with proper HTTP methods. Since the only thing talking to `lamassu-server` is the ATM, we don't need this middleware. `favicon` middleware is exactly what it sounds like. --- lib/app.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/app.js b/lib/app.js index b7a2bbf4..73619483 100644 --- a/lib/app.js +++ b/lib/app.js @@ -63,9 +63,7 @@ module.exports = function (options) { }); app.use(express.logger()); - app.use(express.favicon()); app.use(express.bodyParser()); - app.use(express.methodOverride()); if (!options.https) { server = http.createServer(app);