[EMAIL PROTECTED] wrote:
[...]
can anyone supply a simple example i then can check on our reverse
proxy ?
Try: t/response/TestApache/content_length_header.pm
Though I haven't tried to call it from the filter, so may be Jeff's
suggestion will work.
Jeff's suggestion does indeed work. oddly enough ;
It just happens to work in certain conditions. The correct solution is
to use a bucket brigade-based filter, which gives you a complete
control. What's happening is that streaming filter API passes FLUSH
buckets through, and you can't control that. We have to do that to
conform to the FLUSH requests, to be a well-behaved filter by default.
I've revealed that using 2 debug filters plugged before and after the
filter in question. This is a very useful debugging tool:
http://search.cpan.org/dist/Apache-DebugFilter/
well its not available yet on win32.
what do you mean? It's a pure perl module.
So the following solution works just fine, it'll be added shortly to
the mp2 test suite as a pair of tests: t/filter/out_str_buffer.t
t/filter/TestFilter/out_str_buffer.pm
thanks for the example andf replies. however, i get this error:
Can't locate object method "first" via package "APR::Brigade" i have
prior to that just uninstalled mod_perl [RC5] and installed mod_perl
[RC6] via ppm (randys repository i beleve)
sorry, I didn't paste the part that loads the modules, please see:
http://perl.apache.org/docs/2.0/user/handlers/filters.html#Setting_the_Content_Length_Header_in_Request_Output_Filters
--
__________________________________________________________________
Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com