remove sess->res->buffer (that is, xtext_buffer)