Disable max event listener warning on server

Fixes #238
This commit is contained in:
Nick O'Leary 2014-06-08 00:01:29 +01:00
parent 72476cc8a7
commit 8e48251f26
1 changed files with 1 additions and 0 deletions

1
red.js
View File

@ -82,6 +82,7 @@ if (settings.https) {
} else {
server = http.createServer(function(req,res){app(req,res);});
}
server.setMaxListeners(0);
function formatRoot(root) {
if (root[0] != "/") {