On Thursday 20 October 2005 23:48, Justin Erenkrantz wrote: > --On October 20, 2005 2:37:39 PM -0400 Greg Ames <[EMAIL PROTECTED]> > > wrote: > > I think that's a good philosophy. unfortunately, if I read the only > > developer doc I can find on Apache filters > > http://httpd.apache.org/docs/2.0/developer/filters.html I don't see any > > rules about what to do when your filter changes the length of the body. > > We've only said it a hundred times on [EMAIL PROTECTED] =) An output > filters is > always supposed to clear the appropriate metadata whenever it alters the > body. -- justin
But in practice, that doesn't always happen. That's one of the issues mod_filter sets out to solve, with the new ap_register_output_filter_protocol and ap_filter_protocol API allowing a filter to declare what effect it has on HTTP headers rather than take on the full burden of fixing them itself. -- Nick Kew