Ignore:
Timestamp:
Jun 10, 2004, 11:25:32 PM (18 years ago)
Author:
kake
Message:

Ensure RDF has content-type of text/plain.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/OpenGuides.pm

    r379 r380  
    454454                        vars     => $args{tt_vars},
    455455    );
    456     $output_conf{content_type} = $args{content_type} if $args{content_type};
    457     return OpenGuides::Template->output( %output_conf );
     456    if ( $args{content_type} ) {
     457        $output_conf{content_type} = "";
     458        my $output = "Content-Type: $args{content_type}\n\n"
     459                     . OpenGuides::Template->output( %output_conf );
     460    } else {
     461        return OpenGuides::Template->output( %output_conf );
     462    }
    458463}
    459464
Note: See TracChangeset for help on using the changeset viewer.