Re: Headers Sent Twice
David Wheeler <[email protected]>
| Newsgroups | gmane.comp.web.mason.devel |
|---|---|
| Message-ID | <[email protected]> |
On Apr 30, 2004, at 9:47 PM, Dave Rolsky wrote: > But why should Mason be called in this case at all? If you're going to > send output from the pre-Mason callbacks, you might as well skip > calling > the Mason component altogether, right? No Mason component is called. However, the AH is created, and handle_request and therefore prepare_request() are called. The callbacks are executed by the call to $interp->make_request in prepare_request(). And it is there that your eval catches exceptions and sends headers. So since my callbacks are executing then (and really, because Interp can be subclassed, other applications may send headers at that point), it makes sense to me to send the headers only if they haven't already been sent. Make sense? Thanks, David ------------------------------------------------------- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click