Ignore:
Timestamp:
Nov 29, 2005, 6:22:42 AM (16 years ago)
Author:
Earle Martin
Message:

fixes #28

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/OpenGuides/Template.pm

    r717 r718  
    167167    my $header = "";
    168168    unless ( defined $args{content_type} and $args{content_type} eq "" ) {
    169         $header = CGI::header( -cookie => $args{cookies} );
     169        my $content_type;
     170        if ($args{content_type}) {
     171            $content_type = $args{content_type};
     172        } else {
     173            $content_type = "text/html";
     174        }
     175        $header = CGI::header( -type => $content_type, -cookie => $args{cookies} );
    170176    }
    171177
Note: See TracChangeset for help on using the changeset viewer.