[EMAIL PROTECTED] wrote:

> This could be made MUCH simpler by just changing reset_filters to:
> 
> void reset_filters(r)
> {
>     ap_filter_t *f = r->output_filters;
>     int has_core = 0, has_content = 0, has_http_header = 0;
>     while (f) {
>         ap_filter_t *f2 = f->next;
>         ap_remove_filter(f);
>         f = f2;
>     }
>     ap_add_output_filter("CORE", NULL, r, r->connection);
>     ap_add_output_filter("CONTENT_LENGTH", NULL, r, r->connection);
>     ap_add_output_filter("HTTP_HEADER", NULL, r, r->connection);
> }

Won't this cause a problem if one of these basic filters threw the error
in the first place - when the filter was thrown away (and replaced) the
context would be thrown away too. Would this be a problem, or am I
missing something?

Regards,
Graham
-- 
-----------------------------------------
[EMAIL PROTECTED]                "There's a moon
                                        over Bourbon Street
                                                tonight..."

S/MIME Cryptographic Signature

Reply via email to