You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Geoffrey Young <gy...@laserlink.net> on 2000/04/03 22:57:53 UTC

Apache::Filter headers

Ken - 

	I was trying to figure out (via the archives and docs) why
Apache::Filter was dumping $r->send_http_header after releasing STDOUT back
to Apache?

I'm asking because I'm seeing double headers in the following scenario (both
with PerlSendHeaders Off)
Filter A - runs ok
Filter B - dies
result: 500 header (as text) + 500 ErrorDocument

without $r->send_http_header
Filter A - runs ok
Filter B - dies
result: just 500 ErrorDocument

does mod_perl automatically send headers for PerlHandler routines?  I know
when to use it with Registry stuff, but as I move to handlers for lots of
stuff I see that PerlHandlers seem ok without it.

Does it need to be in Apache::Filter?

--Geoff

Re: Apache::Filter headers

Posted by Doug MacEachern <do...@covalent.net>.
> does mod_perl automatically send headers for PerlHandler routines?  I know
> when to use it with Registry stuff, but as I move to handlers for lots of
> stuff I see that PerlHandlers seem ok without it.

no, mod_perl will only send headers (by calling ap_send_http_header) if
you have PerlSendHeader On.