Set X-Powered-By to state that it is using Revolution
This commit is contained in:
parent
a36da6427a
commit
aff6ce9ba5
1 changed files with 8 additions and 2 deletions
10
index.js
10
index.js
|
@ -113,9 +113,15 @@ function frameworkServer() {
|
||||||
// Load in the request handler's extra required items.
|
// Load in the request handler's extra required items.
|
||||||
reqhandler.extras();
|
reqhandler.extras();
|
||||||
// Define where GET requests go to in the request handlers.
|
// 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.
|
// 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
|
// Start the server listening at the port defined in the config file
|
||||||
app.listen(config.server.port, () => {
|
app.listen(config.server.port, () => {
|
||||||
dE = new Date(),
|
dE = new Date(),
|
||||||
|
|
Loading…
Reference in a new issue