]> git.donarmstrong.com Git - debbugs.git/commitdiff
send out the right charset on all requests
authorDon Armstrong <don@donarmstrong.com>
Sat, 24 Sep 2016 21:40:01 +0000 (14:40 -0700)
committerDon Armstrong <don@donarmstrong.com>
Sat, 24 Sep 2016 21:40:01 +0000 (14:40 -0700)
cgi/bugreport.cgi

index 7a9498213e0828bad8cdf59ae8ef0380bd346b1e..cae46f9af0ff03ab7eb3d5898a9d98ca80d3defc 100755 (executable)
@@ -146,7 +146,12 @@ $etag =
                                 ],
                       );
 if (not $etag) {
-    print $q->header(-status => 304);
+    print $q->header(-status => 304,
+                    -cache_control => 'public, max-age=600',
+                    -etag => $etag,
+                    -charset => 'utf-8',
+                    -content_type => 'text/html',
+                   );
     print "304: Not modified\n";
     exit 0;
 }
@@ -156,6 +161,7 @@ if ($q->request_method() eq 'HEAD' and not defined($att) and not $mbox) {
     print $q->header(-status => 200,
                     -cache_control => 'public, max-age=600',
                     -etag => $etag,
+                    -charset => 'utf-8',
                     -content_type => 'text/html',
                    );
      exit 0;