Use on-headers instead of writeHead patching