refactor: removed our own ctx->headers_sent field because we should used r->header_sent instead.