Fix Bug 868588 - Don't use res.end()