Loading CHANGES +4 −0 Original line number Diff line number Diff line 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 Loading modules/http/http_protocol.c +3 −2 Original line number Diff line number Diff line Loading @@ -1745,8 +1745,9 @@ static const char *get_canned_error_string(int status, 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); } Loading Loading
CHANGES +4 −0 Original line number Diff line number Diff line 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 Loading
modules/http/http_protocol.c +3 −2 Original line number Diff line number Diff line Loading @@ -1745,8 +1745,9 @@ static const char *get_canned_error_string(int status, 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); } Loading