fixed text/html rewrite res.headers.content-length