added support for tracking 'Content-Length' via res.writeHead