Move res.end() to eof