Browse Source

Updated server.js to handel wrong requests.

pull/4/head
jrtechs 6 years ago
parent
commit
24982c73e3
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      server.js

+ 2
- 1
server.js View File

@ -122,7 +122,8 @@ app.use(function(request, res)
}
else
{
utils.printWrongHost(res);
// utils.printWrongHost(res);
res.writeHead(418, {});
res.end();
}
});

Loading…
Cancel
Save