Node.js Simple Server Request End Event Issue

listed in answer

Node.js Simple Server Request End Event Issue
0 votes, 0.00 avg. rating (0% score)

ANSWER:

It seems that your are using Node.js 0.10.x and in the new version you have to resume the readable streams to make them emit events:

require('http').createServer(function (request, response) 
    request.on('end', function () 
        console.log("ended");
    );
    request.resume();
}).listen(8080);

micnic from http://stackoverflow.com/questions/15757600