You need to add your
data listener before you call
route. Reason being, in your handlers you are calling
response.end. When you do this, node checks if there are any
data listeners on the socket, and if not, it will dump the existing request
data, as it figures it's no longer needed.