Replace the entire block with `res.writeHead(rres.statusCode, '', rres.headers);`?