From: short <> Date: Sun, 25 Sep 2005 09:54:01 +0000 (+0000) Subject: Fixed defaulting of: $W->{"charset"} X-Git-Url: http://git.jankratochvil.net/?p=MyWeb.git;a=commitdiff_plain;h=50d8c1c2f8fcf1f8df99788f123a89903895e21c Fixed defaulting of: $W->{"charset"} --- diff --git a/Web.pm b/Web.pm index ae4a0a8..0efd5f6 100644 --- a/Web.pm +++ b/Web.pm @@ -1103,7 +1103,8 @@ my($class)=@_; header("Cache-Control"=>"public"); # HTTP/1.1 # Use $W->{"charset"}=0 to disable charset. - $W->{"charset"}="us-ascii" if !defined $W->{"charset"} && !defined($W->{"content_type"}) || $W->{"content_type"}; + $W->{"charset"}="us-ascii" + if !defined $W->{"charset"} && (!defined($W->{"content_type"}) || $W->{"content_type"}); # Workaround bug # https://bugzilla.mozilla.org/show_bug.cgi?id=120556