use on-headers instead of patching writeHead