That's exactly what I was looking for and it works too. Thanks Rhesa!

Rhesa Rozendaal wrote:
Hi Carlos,

I'm using cgiapp_postrun() to add header and footer to outgoing content. I'm some runmodes, I'm setting the outgoing content type to 'text/plain' which means that I do not want to add header and footer content to the outgoing content.

Here's what I do:

sub cgiapp_postrun
{
    if( $self->header_type eq 'header' )
    {
        my %props = $self->header_props;
        if( !exists($props{'-type'}) or $props{'-type'} eq 'text/html' )
        {
            # do stuff for html output
        }
    }
}


Any help is appreciated. Thanks.

-Carlos


Rhesa



---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/[email protected]/
             http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to