Fixed defaulting of: $W->{"charset"}
authorshort <>
Sun, 25 Sep 2005 09:54:01 +0000 (09:54 +0000)
committershort <>
Sun, 25 Sep 2005 09:54:01 +0000 (09:54 +0000)
Web.pm

diff --git a/Web.pm b/Web.pm
index ae4a0a8..0efd5f6 100644 (file)
--- 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