Changes with Apache 2.0.19-dev
+ *) Fix reset_filter(). We need to be careful how we remove filters.
+ If we set r->output_filters to NULL, we also have to reset the
+ connection's filters. [John Sterling]
+
*) Optimise reset_filter() in http_protocol.c. [Greg Stein]
*) Add a check to ap_die() to make sure the filter stack is sane and
static void reset_filters(request_rec *r)
{
- r->output_filters = NULL;
- ap_add_output_filter("CORE", NULL, r, r->connection);
+ r->connection->output_filters = r->output_filters = NULL;
+ ap_add_output_filter("CORE", NULL, NULL, r->connection);
+ r->output_filters = r->connection->output_filters;
ap_add_output_filter("CONTENT_LENGTH", NULL, r, r->connection);
ap_add_output_filter("HTTP_HEADER", NULL, r, r->connection);
}