Gossamer Forum
Home : General : Perl Programming :

Cannot get media type from 'cgi-script'

Quote Reply
Cannot get media type from 'cgi-script'
See this message repeatedly in my error log and would like to eliminate it. the following sub is called before each page is generated:

Code:
sub html_print_headers {

# --------------------------------------------------------
# Print out the headers if they haven't already been printed.


if (!$html_headers_printed) {
print "Content-type: text/html\n\n";
$html_headers_printed = 1;
}
}



when i look at source code on any page, the content-type statement isn't there. is this the problem? can i eliminate it by placing

Code:
<meta http-equiv="X-UA-Compatible" content="IE=edge" content-type="text/html; charset=UTF-8">
in the header? i'm just adding content-type; the first part was generated by bootstrap i think.

Subject Author Views Date
Thread Cannot get media type from 'cgi-script' delicia 3147 Jun 3, 2020, 6:39 AM
Post Re: [delicia] Cannot get media type from 'cgi-script'
Andy 3090 Jun 4, 2020, 12:50 AM