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. According to the docs, I should be able to use header_props() to get the outgoing headers so that I can do the following in my cgiapp_postrun subroutine:

sub cgiapp_postrun {
 my $headers = $self->header_props;

 if ($headers->{'-type'} eq 'text/html') {
     ## add header/footer to $$output_ref
 }
}

Unfortunately the above doesn't work. Printing $headers gives the string: 1/8?

Any help is appreciated. Thanks.

-Carlos




---------------------------------------------------------------------
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