Re: Headers Sent Twice
Dave Rolsky <[email protected]>
| Newsgroups | gmane.comp.web.mason.devel |
|---|---|
| Message-ID | <[email protected]> |
On Fri, 30 Apr 2004, David Wheeler wrote: > On Apr 30, 2004, at 8:05 PM, Dave Rolsky wrote: > > > So it sends output, aborts, and _then_ Mason runs? That seems odd. > > Mason always expects to be the first thing to send content. > > Yes, I have callbacks that send status messages to the browser, and > then send JavaScript that triggers an immediate redirect. Without that > patch, the headers appear after my JavaScript. 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? -dave /*======================= House Absolute Consulting www.houseabsolute.com =======================*/ ------------------------------------------------------- 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