From aff6ce9ba502275304607fad18430496f8a8cdf5 Mon Sep 17 00:00:00 2001 From: tgpethan Date: Tue, 5 May 2020 17:51:07 +0100 Subject: [PATCH] Set X-Powered-By to state that it is using Revolution --- index.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 7228dc8..72a07a5 100644 --- a/index.js +++ b/index.js @@ -113,9 +113,15 @@ function frameworkServer() { // Load in the request handler's extra required items. reqhandler.extras(); // Define where GET requests go to in the request handlers. - app.get('*', (req, res) => reqhandler.get(req, res)); + app.get('*', (req, res) => { + res.set("X-Powered-By", "Revolution"); + reqhandler.get(req, res); + }); // Define where POST requests go to in the request handlers. - app.post('*', (req, res) => reqhandler.post(req, res)); + app.post('*', (req, res) => { + res.set("X-Powered-By", "Revolution"); + reqhandler.post(req, res); + }); // Start the server listening at the port defined in the config file app.listen(config.server.port, () => { dE = new Date(),