#!perl
use strict;
use warnings;
use CGI;
, qr/charset=ISO-8859-1/, "charset ISO-8859-1 is set by default for application/json content-type");
{
like($out, qr{Content-Type: text/plain; charset=UTF-8}, "setting charset alters header of text/plain");
}
{
like($out, qr{Content-Type: application/json; charset=UTF-8}, "setting charset alters header of application/json");
}