diff --git a/server/routers/ApiRouter.js b/server/routers/ApiRouter.js index 4ca1aef6..370b2c00 100644 --- a/server/routers/ApiRouter.js +++ b/server/routers/ApiRouter.js @@ -60,6 +60,7 @@ class ApiRouter { this.musicFinder = new MusicFinder() this.router = express() + this.router.disable('x-powered-by') this.init() } diff --git a/server/routers/HlsRouter.js b/server/routers/HlsRouter.js index 58896097..bcb3c74b 100644 --- a/server/routers/HlsRouter.js +++ b/server/routers/HlsRouter.js @@ -14,6 +14,7 @@ class HlsRouter { this.playbackSessionManager = playbackSessionManager this.router = express() + this.router.disable('x-powered-by') this.init() } diff --git a/server/routers/StaticRouter.js b/server/routers/StaticRouter.js index 936054a0..555b6a8d 100644 --- a/server/routers/StaticRouter.js +++ b/server/routers/StaticRouter.js @@ -8,6 +8,7 @@ class StaticRouter { this.db = db this.router = express() + this.router.disable('x-powered-by') this.init() } @@ -24,7 +25,7 @@ class StaticRouter { // See: https://www.nginx.com/resources/wiki/start/topics/examples/x-accel/ if (global.XAccel) { Logger.debug(`Use X-Accel to serve static file ${fullPath}`) - return res.status(204).header({'X-Accel-Redirect': global.XAccel + fullPath}).send() + return res.status(204).header({ 'X-Accel-Redirect': global.XAccel + fullPath }).send() } var opts = {}