Tatsuhiko Miyagawa wrote:
> if I want to modify HTTP response header in OutputFilter phase, I
> should configure httpd.conf as PerlOptions +GlobalRequest, and then I
> can get $r with Apache->request.
> 
> Am I right in saying this?

Yes, but there is an easier and *much* more effective way.

Your handler is really FilterRequestHandler (which is the default 
attribute) so you have the request object already.

sub handler : FilterRequestHandler {
     my $filter = shift;
     ...
     $filter->r->content_type("text/html; charset=$charset");
     ...
}

__________________________________________________________________
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


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to