Fixed request.on('end') not being called with new node version