Re: Creating a filter for all text/html files

2005-02-02 Thread Scott Gifford
"Philippe M. Chiasson" <[EMAIL PROTECTED]> writes: > Scott Gifford wrote: >> Hello, >> [...] >> >> I've got it working right now, but I'd like it to know the >> Content-Type that Apache would use for a document, so I can decide >> whether to filter it and so I can send a correct Content-Type heade

Re: Creating a filter for all text/html files

2005-02-01 Thread Geoffrey Young
> I can try to guess the content-type from the filename (which is what > I'm doing now), but I'd prefer not to re-implement Apache's system for > deciding content types, and I'd also like it to Do The Right Thing for > CGI/mod_perl scripts, where you can't tell by the filename what > content-type

Re: Creating a filter for all text/html files

2005-02-01 Thread Philippe M. Chiasson
Scott Gifford wrote: Hello, [...] I've got it working right now, but I'd like it to know the Content-Type that Apache would use for a document, so I can decide whether to filter it and so I can send a correct Content-Type header. $r->content_type should tell you that. http://perl.apache.org/docs/2.