1
Fork 0

set response on server

This commit is contained in:
Jake Howard 2016-10-25 19:47:26 +01:00
parent 01022c0c6d
commit 44a3b0c576
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -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();
}); });