X-Git-Url: http://git.jankratochvil.net/?p=MyWeb.git;a=blobdiff_plain;f=Web.pm;fp=Web.pm;h=0efd5f6f18ac01227c097ea10112c66b5c27a53e;hp=ae4a0a869d2bbe48a5d9b0d8a5f8e35238a8202e;hb=50d8c1c2f8fcf1f8df99788f123a89903895e21c;hpb=d66cbe9f18586a2d0f5ce789a5d1824878965fd7 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