perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Torsten Foertsch <torsten.foert...@gmx.net>
Subject Re: filter->remove
Date Fri, 18 Apr 2008 15:20:16 GMT
On Fri 18 Apr 2008, adam.prime@utoronto.ca wrote:
> This leads me to believe that i could write a filter that sat at the  
> head of the chain, which looked through all the filters in the chain,  
> and if appropriate removed random ones through the chain.
>
> I have a situation where i have a CGI which sometimes returns  
> text/html, and sometimes returns text/csv, but IE chokes if the csv is  
> gzipped by deflate.  I've had to disable deflate on ALL cgi's as a  
> result, but this seems like i could just create a filter that runs on  
> CGI's, that looks for a pnote that indicates that deflate should be  
> taken out of the chain.
>
> Is that correct?

Yes, I think that is correct. In fact I believe to remember there is a test in 
the modperl test suite that does just that.

Here it is: t/filter/both_str_native_remove.t

Torsten

--
Need professional mod_perl support?
Just hire me: torsten.foertsch@gmx.net

Mime
View raw message