my $header = 'application/xhtml+xml'; if( index( $ENV{HTTP_ACCEPT}, $header ) == -1 ) { $header = 'text/html'; } # unless print $poard->get_cgi->header( -type => $header, -expires => '+0s', ... );