set response on server
This commit is contained in:
parent
01022c0c6d
commit
44a3b0c576
1 changed files with 3 additions and 1 deletions
|
@ -4,7 +4,9 @@ const PORT = process.env.PORT || 5000;
|
||||||
|
|
||||||
const app = express();
|
const app = express();
|
||||||
|
|
||||||
app.use(function (request) {
|
app.use(function (request, response) {
|
||||||
|
response.status_code = 444;
|
||||||
|
response.write('444');
|
||||||
request.connection.destroy();
|
request.connection.destroy();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Reference in a new issue